-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add check link availability in the CheckIntelligenceCommandFromToolbarTest selenium test #8063
Conversation
…-check-intelligence
…-check-intelligence
…omToolbarTest' , apply render checker for 'CommandsToolbar' page-object methods
…-check-intelligence
|
||
consoles.clickOnPreviewUrl(); | ||
checkTestAppAndReturnToIde(currentWindow, "Enter your name:"); | ||
waitAndCheckPreviewUrlIsAvailable(currentWindow, "Enter your name"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waitAndCheckPreviewUrlIsAvailable > waitOnAvailablePreviewPage
.until((ExpectedCondition<Boolean>) driver -> linkIsAvailable(currentWindow, expectedText)); | ||
} | ||
|
||
private Boolean linkIsAvailable(String currentWindow, String expectedText) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linkIsAvailable > isPreviewPageAvailable
@@ -125,4 +117,34 @@ private void checkTestAppAndReturnToIde(String currentWindow, String expectedTex | |||
seleniumWebDriver.close(); | |||
seleniumWebDriver.switchTo().window(currentWindow); | |||
} | |||
|
|||
private void waitAndCheckPreviewUrlIsAvailable(String currentWindow, String expectedText) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expectedText > expectedTextOnPreviewPage
What does this PR do?
Add check link availability in the CheckIntelligenceCommandFromToolbarTest selenium test
What issues does this PR fix or reference?
Issue #8019
Release Notes
Docs PR