-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1385 bug fix broken system tests (#1386)
* fix FrameTests.switchToIFrameAndTypeIntoElement FrameTests.switchToIFrameAndTypeIntoElement:61 Failed to identify unique element using this locator "By.xpath: //input[@name='cardnumber']" Root cause: "org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//iframe[@title='Secure card payment input frame']"}" Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * enabler for mocked API unit tests Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * fix for cucumberTestRunner.CucumberTests.runScenario["Element visual assertions" Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * handling java.lang.RuntimeException: Unexpected result for screenshot command: com.google.common.collect.Maps$TransformedEntriesMap instance related to a timeout from renderer and happens on MacOSX_Safari_BrowserStack while navigating back/forward Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * hashing Android_Native_Emulator tests - these tests add no coverage as the same scope is handled by browserstack, in addition to the fact that they are very flaky due to the nature of emulator tests. Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * updating app url to fix false failure Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * handling null exception thrown due to failed driver initialization, fixed by a previous commit Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * upgrade local edge installation this job [Windows_Edge_Local] is facing unreproducible flakiness. upgrading the local edge browser version on the github machine to attempt to neutralize this issue. TODO: consider removing this job entirely if not needed. Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * set chrome to latest stable not snapshot this job [MacOSX_Chrome_Local] is facing unreproducible flakiness. switching the local chrome browser version on the github machine to the latest stable release (default was latest snapshot) to attempt to neutralize this issue. TODO: consider removing this job entirely if not needed. Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * fix frameName method bug & enhance test Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * force fail rather than returning empty screenshot this is better as an empty screenshot is just an unhandled exception waiting to blow up in someone else's face Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * force upgrade edge and chrome to latest - upgrading browser version should stabilize these pipelines: -- Windows_Chrome_Local -- Windows_Edge_Cucumber - increase retry attempts from '0' to '1' Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * refactor navigation (forward, back, refresh) - ensure current navigation has stopped before attempting a new navigation action. - ensure lazy loading operations have finished before attempting a new navigation action. Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * increase default scriptExecutionTimeout - change from 30 to 60 as it now has impact on executing BiDi scripts, this should improve stability for navigation actions against BiDi-enabled remote webdriver sessions. Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * Refactor some screenshot logic - switch instead of chained if conditions. (better performance) - depend on the target browser name rather than the webdriver instance (has a lower chance of failure due to casting issues) - commenting one of the new exceptions for later tracking Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * removing redundant condition Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> * removing redundant minor test refactoring Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> --------- Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com> @MahmoudElSharkawy FYI
- Loading branch information
1 parent
59962e4
commit bd1b243
Showing
15 changed files
with
373 additions
and
327 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.