Skip to content

Always have a "page file is reloaded" check after rename - #29033

Merged
phil-davis merged 1 commit into
masterfrom
fix-intermittent-rename-ui-test-failure
Sep 18, 2017
Merged

phil-davis merged 1 commit into
masterfrom
fix-intermittent-rename-ui-test-failure

Conversation

@phil-davis

@phil-davis phil-davis commented Sep 17, 2017 •

Copy link
Copy Markdown
Contributor

Description

In each renaming UI test, make sure to reload the files page and check the existence of the expected renamed file. This seems to leave the browser in a "better" more consistent state, from which Selenium and the "CSRF check" cope better.

Read the related issue for various alternatives that were tested and reasoning...

Related Issue

#28920

Motivation and Context

Fix intermittent fails of rename tests.

How Has This Been Tested?

Multiple Travis UI test runs have been done in temporary branches on top of this to confirm it works. 8 complete UI test runs were all successful.

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.

@phil-davis

Copy link
Copy Markdown
Contributor Author

Note: the elapsed time of the "files" suite UI tests is getting longer again (delete and move tests have been added in recent days, and this change adds a little more elapsed time also). So separate action will be needed to break this up into separate suites...

@phil-davis phil-davis self-assigned this Sep 17, 2017
@phil-davis phil-davis added this to the planned milestone Sep 17, 2017
@phil-davis phil-davis changed the title Always have a page file is reloaded check after rename Always have a "page file is reloaded" check after rename Sep 17, 2017

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

change does not hurt (except of a little bit of time) and is good if it makes the test more reliable (saves a lot of time)

@phil-davis
phil-davis merged commit 7e3b15d into master Sep 18, 2017
@phil-davis
phil-davis deleted the fix-intermittent-rename-ui-test-failure branch September 18, 2017 05:23
@phil-davis

Copy link
Copy Markdown
Contributor Author

Backport stable10 #29038

@lock

lock Bot commented Aug 2, 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 2, 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.

3 participants