Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change regexp for mocha expect which include verification for rhoas tool #22947

Merged
merged 1 commit into from Apr 29, 2024

Conversation

musienko-maxim
Copy link
Contributor

What does this PR do?

After several failures Jenkins job for checking WTO I figure out that WTO v1.10 includes a new tool - rhoas. This PR adds into mocha regexp verification of this.

Screenshot/screencast of this PR

.......
To customize this terminal, see 'wtoctl'
    ✔ Verify help command under admin user
          ▼ WebTerminalPage.typeAndEnterIntoWebTerminal
            ‣ DriverHelper.waitPresence - By(xpath, //*[@class="xterm-helper-textarea"])
            ‣ DriverHelper.typeToInvisible - By(xpath, //*[@class="xterm-helper-textarea"]) text: wtoctl set timeout 30s
            ‣ DriverHelper.waitPresence - By(xpath, //*[@class="xterm-helper-textarea"])
            ‣ DriverHelper.waitVisibility - By(xpath, //div[contains(text(),"The terminal connection has closed")])
            ‣ DriverHelper.waitVisibility - polling timed out attempt #1, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #2, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #3, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #4, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #5, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #6, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #7, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #8, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #9, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #10, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - polling timed out attempt #11, retrying with 1000ms timeout
            ‣ DriverHelper.waitVisibility - element is located and is visible.
            ‣ DriverHelper.waitVisibility - By(xpath, //button[text()="Restart terminal"])
            ‣ DriverHelper.waitVisibility - element is located and is visible.
    ✔ Verify help command under admin user
          ▼ ShellExecutor.executeArbitraryShellScript - oc delete dw --all -n openshift-terminal
          ▼ ShellExecutor.executeCommand - oc delete dw --all -n openshift-terminal
devworkspace.workspace.devfile.io "terminal-ltnl2v" deleted

            ‣ DriverHelper.wait - (5000 milliseconds)
            ‣ DriverHelper.quit
            ‣ DriverHelper.getDriver

  5 passing (58s)

What issues does this PR fix or reference?

https://issues.redhat.com/browse/WTO-277

How to test this PR?

Set up environments and run the test as well

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to merge

@musienko-maxim musienko-maxim merged commit 32c10ab into main Apr 29, 2024
5 checks passed
@musienko-maxim musienko-maxim deleted the WTO-277 branch April 29, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants