Skip to content

UI tests - clear input before renaming - #28175

Merged
individual-it merged 3 commits into
masterfrom
ui-tests-check-input-when-renaming
Jun 21, 2017
Merged

individual-it merged 3 commits into
masterfrom
ui-tests-check-input-when-renaming

Conversation

@individual-it

Copy link
Copy Markdown
Member

Description

This PR makes sure the file name input is cleared before a new name is filled in

Motivation and Context

In the tests sometimes the setValue() method does not remove the complete old value of the field but only the marked part. e.g. renaming file.txt to new-file.txt would become new-file.txt.txt
In this occasions tests fail even there is no problem in the code. I could not find out why and when its happening, seems only be a problem on Firefox. And it happens irregularly.
The only solution I found was to send an own delete-sequence and only then the real value. To make sure it works the value is double-checked and if its still wrong an exception is thrown.

How Has This Been Tested?

run several times on travis

Screenshots (if appropriate):

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.

Comment thread tests/ui/features/lib/OwncloudPage.php Outdated
* sends an END key and then BACKSPACEs to delete the current value
* then sends the new value
* checks the set value and sends the Escape key + throws an exception
* if the value is not set corectly

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.

The small comment typos are here - "corectly" and spaces in "if the".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

that is the prove that the code is done by me: at least one misspelled English word

@individual-it
individual-it merged commit a9a27d1 into master Jun 21, 2017
@individual-it
individual-it deleted the ui-tests-check-input-when-renaming branch June 21, 2017 06:36
@lock

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

2 participants