-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI tests for delete feature #28809
UI tests for delete feature #28809
Conversation
@@ -167,7 +168,7 @@ public function findRenameInputField() { | |||
*/ | |||
public function rename($toName) { | |||
$actionMenu = $this->openFileActionsMenu(); | |||
$actionMenu->rename($this->fileRenameInputXpath); | |||
$actionMenu->rename(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing to do with deleting. just too much waiting that I've noticed.
* | ||
* @return string | ||
*/ | ||
public function getTooltip() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
placed the function higher up, to make the order more logical.
@@ -136,6 +137,7 @@ public function findFileRowByName($name, Session $session) | |||
{ | |||
$previousFileCount = 0; | |||
$currentFileCount = null; | |||
$this->scrollToPosition('#' . $this->appContentId, 0, $session); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not specific to deleting but when trying to find a file at the top of the page after the page got scrolled down it would find the file but could not click it as it was out of view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just 2 other things that I noticed.
@@ -76,7 +76,8 @@ public function rename( | |||
* @return void | |||
*/ | |||
public function delete() { | |||
; | |||
$renameBtn = $this->findButton($this->deleteActionLabel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var name is misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy and paste mistake 🤦♂️
} | ||
|
||
/** | ||
* @When I mark these files for batch action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step marks for batch action, and also actually does the batch delete.
Maybe the step text could be like:
When I batch delete these files:
and that would read more clearly in the scenario.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm - maybe do not put the ":" at the end - that will make it think there is a PyString coming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made now two steps out of it, that was the way I've planed it in the first place
14b0ca0
to
c327608
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now
Backport stable10 #28811 |
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. |
Description
UI test for deleting files and folder
Related Issue
owncloud/QA#437
Motivation and Context
reduce manual test time by running the smoke test automatically
How Has This Been Tested?
run tests locally and in travis
Types of changes
Checklist: