Skip to content

Make UI Tests run on Edge browser #29138

Closed

Description

@phil-davis

It would be useful to have the UI tests capable of running on Microsoft Edge browser with Windows 10.

Putting this issue here so I can document tricks and problems that I find along the way.

Activity

  1. self-assigned this
    on Oct 3, 2017
  2. phil-davis commented on Oct 3, 2017

    @phil-davis
    ContributorAuthor

    Behat/MinkExtension#292

    Edge webDriver deleteAllCookies() fails. A workaround is to use the @insulated tag in Behat/Gherkin feature scenarios. Insulated scenarios cause MinkExtension to call stopSessions() which does a full reset of the browser session, rather than trying to do individual stuff like deleting cookies.

  3. phil-davis commented on Oct 3, 2017

    @phil-davis
    ContributorAuthor

    https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5569343/

    Edge webDriver getText() returns extra white space after the text. So, for now, tests need to trim() the results of getText() before comparing with the expected text string.

  4. phil-davis commented on Oct 3, 2017

    @phil-davis
    ContributorAuthor
  5. phil-davis commented on Oct 3, 2017

    @phil-davis
    ContributorAuthor

    This can happen:

    PHP  41. Page\FilesPageBasic->waitTillPageIsLoaded() /tmp/ProxyManagerGeneratedProxy__PM__PageFilesPageGenerated2897994410194442686143097669da61.php:244
    
    Fatal error: Call to a member function hasClass() on null in /home/travis/build/[secure]/core/tests/ui/features/lib/FilesPageBasic.php on line 335
    

    that code needs to be looked at and made more robust for general use (looks like the problem is waiting to happen and some Edge timing is bringing it out)

  6. phil-davis commented on Oct 3, 2017

    @phil-davis
    ContributorAuthor

    Sometimes after iLogout() the next login step fails not being able to find the username field to fill.

    Looks like there needs to be some waitTillPageIsLoaded() code somewhere there.

    That might also fix intermittent fails in federation and sharing tests that switch between UI users with "I logout" and "I login..."

  7. phil-davis commented on Oct 3, 2017

    @phil-davis
    ContributorAuthor

    Somehow we can get to this point on the trashbin page and not find a $fileListXpath inside which we then want to look for the relevant file row:

      Scenario: Delete a file with problematic characters       # /home/travis/build/[secure]/core/tests/ui/features/trashbin/delete.feature:20
    
    PHP Fatal error:  Call to a member function find() on null in /home/travis/build/[secure]/core/tests/ui/features/lib/FilesPageBasic.php on line 133
    
  8. phil-davis commented on Nov 7, 2017

    @phil-davis
    ContributorAuthor

    Finally got there PR #29485 master and PR #29495 stable10

  9. lock commented on Aug 1, 2019

    @lock

    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.

  10. locked as resolved and limited conversation to collaborators on Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions