Repository navigation
UI tests on Microsoft Edge browser - #29485
Conversation
9589cfc to
6d78449
Compare
individual-it
left a comment
There was a problem hiding this comment.
👍 if the test run reasonable stable
Codecov Report
@@ Coverage Diff @@
## master #29485 +/- ##
=========================================
Coverage 60.84% 60.84%
Complexity 17238 17238
=========================================
Files 1032 1032
Lines 57365 57365
=========================================
Hits 34904 34904
Misses 22461 22461Continue to review full report at Codecov.
|
|
Backport stable10 #29495 |
|
Hey @phil-davis, looks like you solve the problem, what did you do ? I work with Selenium and C# |
|
Hi, I figured out what is the problem, it's related to EDGE webDriver. The problem happen when the element has the attribute |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Lengthen the files page wait till page is loaded timeout to 60 seconds. When using Edge, particularly in the sharing tests when the test logs in and out as user1, user2 and user3, things get slow in calculating and transferring... all the skeleton files with thumbnails at the 1st login of each user. It does actually work if it is given time. There is no point throwing a timeout exception "early" and there is no real loss in having the longer timeout. All the regular tests that work "quickly" in each browser will wait just like they used to. It is only if something goes wrong that we will now wait 60 seconds rather than 20 seconds before giving up.
The Edge webDriver is still rather stupid and unreliable. when calling
$element->isVisible()or$element->click()it often throws back withNoSuchElementeven though we just found the element. Catch this rubbish and do something reasonable (or just keep going, because sometimes it worked)Run the Edge tests in the daily Travis cron job, like is done for Firefox and IE11.
Skip tests that try to navigate and click the sharing permissions buttons. Those tests require clicking on "label" elements, and Edge webDriver currently has trouble with clicking on stuff like that (it seems that thrying to click on a "label", "span", "a" and goodness knows what other tags is not working with Edge webDriver, but it works fine on Chrome and Firefox)
Some references for 4:
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10290683/
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12306419/
SeleniumHQ/selenium#4843
https://groups.google.com/forum/#!topic/selenium-users/xukryAZfpbc
Related Issue
#29138 UI tests on Edge browser
#28016 Review supported browser versions
Motivation and Context
Run the automated UI tests on as many supported browsers as reasonably possible.
That gives more confidence in finding annoying UI issues.
How Has This Been Tested?
Successful runs of the Edge Travis matrix jobs have been done in a separate test PR in my fork.
e.g. https://github.com/phil-davis/core/pull/120
Types of changes
Checklist:
I will also make a test PR on top of this to run the Edge Travis matrix jobs here in the owncloud core repo.