Skip to content

UI tests on Microsoft Edge browser - #29485

Merged
phil-davis merged 4 commits into
masterfrom
ui-tests-on-edge
Nov 7, 2017
Merged

phil-davis merged 4 commits into
masterfrom
ui-tests-on-edge

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Description

  1. 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.

  2. The Edge webDriver is still rather stupid and unreliable. when calling $element->isVisible() or $element->click() it often throws back with NoSuchElement even though we just found the element. Catch this rubbish and do something reasonable (or just keep going, because sometimes it worked)

  3. Run the Edge tests in the daily Travis cron job, like is done for Firefox and IE11.

  4. 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

I will also make a test PR on top of this to run the Edge Travis matrix jobs here in the owncloud core repo.

@individual-it individual-it left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 if the test run reasonable stable

@codecov

codecov Bot commented Nov 7, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #29485 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #29485   +/-   ##
=========================================
  Coverage     60.84%   60.84%           
  Complexity    17238    17238           
=========================================
  Files          1032     1032           
  Lines         57365    57365           
=========================================
  Hits          34904    34904           
  Misses        22461    22461

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3da7b8e...6d78449. Read the comment docs.

@phil-davis
phil-davis merged commit 310d7fa into master Nov 7, 2017
@phil-davis
phil-davis deleted the ui-tests-on-edge branch November 7, 2017 13:26
@phil-davis

Copy link
Copy Markdown
Contributor Author

Backport stable10 #29495

@kiragengis

kiragengis commented Feb 1, 2018 •

Copy link
Copy Markdown

Hey @phil-davis, looks like you solve the problem, what did you do ? I work with Selenium and C#

@kiragengis

Copy link
Copy Markdown

Hi, I figured out what is the problem, it's related to EDGE webDriver. The problem happen when the element has the attribute overflow:hidden, here you can follow this issue

@lock

lock Bot commented Aug 1, 2019

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants