Skip to content

UI tests to check that the file conflict dialogue disappears again - #29579

Merged
individual-it merged 1 commit into
masterfrom
ui-tests-upload-check-dialog
Nov 15, 2017
Merged

individual-it merged 1 commit into
masterfrom
ui-tests-upload-check-dialog

Conversation

@individual-it

Copy link
Copy Markdown
Member

Description

UI tests to check if the file-conflict pop-up disappears again

Related Issue

#29459

Motivation and Context

prevent future issues like #29459

How Has This Been Tested?

run locally and on travis

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.

@individual-it
individual-it force-pushed the ui-tests-upload-check-dialog branch from 11d3a6e to 1095ad8 Compare November 15, 2017 10:57
@codecov

codecov Bot commented Nov 15, 2017 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #29579   +/-   ##
=========================================
  Coverage     61.71%   61.71%           
  Complexity    17482    17482           
=========================================
  Files          1047     1047           
  Lines         57714    57714           
=========================================
  Hits          35619    35619           
  Misses        22095    22095

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 4ff6e28...1095ad8. Read the comment docs.

}
$currentTime = microtime(true);
$end = $currentTime + (STANDARDUIWAITTIMEOUTMILLISEC / 1000);
while ($currentTime <= $end && ($count !== count($dialogs))) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note: this loop is needed because some dialogs have taken time to actually dismiss, e.g. after clicking the cancel button. So we try checking how many dialogs are still open. When it gets to the expected number, great. If it never reaches the expected number withing the timeout then the assertEquals() can fail - we have a "real" problem.

@individual-it
individual-it merged commit a8a50de into master Nov 15, 2017
@individual-it
individual-it deleted the ui-tests-upload-check-dialog branch November 15, 2017 14:05
@individual-it

Copy link
Copy Markdown
Member Author

backport in #29585

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

3 participants