Skip to content
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

Merged
merged 1 commit into from
Aug 28, 2017
Merged

UI tests for delete feature #28809

merged 1 commit into from
Aug 28, 2017

Conversation

individual-it
Copy link
Member

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

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

@@ -167,7 +168,7 @@ public function findRenameInputField() {
*/
public function rename($toName) {
$actionMenu = $this->openFileActionsMenu();
$actionMenu->rename($this->fileRenameInputXpath);
$actionMenu->rename();
Copy link
Member Author

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() {
Copy link
Member Author

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);
Copy link
Member Author

@individual-it individual-it Aug 28, 2017

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

Copy link
Contributor

@phil-davis phil-davis left a 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);
Copy link
Contributor

Choose a reason for hiding this comment

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

var name is misleading.

Copy link
Member Author

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
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Member Author

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

@individual-it individual-it force-pushed the ui-tests-delete-files branch from 14b0ca0 to c327608 Compare August 28, 2017 04:39
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

LGTM now

@phil-davis phil-davis merged commit 7111eb2 into master Aug 28, 2017
@phil-davis phil-davis deleted the ui-tests-delete-files branch August 28, 2017 07:44
@phil-davis
Copy link
Contributor

Backport stable10 #28811

@lock
Copy link

lock bot commented Aug 2, 2019

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