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 reset password #31168

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

paurakhsharma
Copy link
Member

@paurakhsharma paurakhsharma commented Apr 17, 2018

Description

UI test for testing reset password function

Related Issue

#31116

Motivation and Context

first step for acceptance tests for #31092 (review)

How Has This Been Tested?

run tests locally

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.

@CLAassistant
Copy link

CLAassistant commented Apr 17, 2018

CLA assistant check
All committers have signed the CLA.

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.

Great stuff - just 1 little comment.
The next challenge is how to extract the link from the email text and then browse to it and actually enter a new password.

}

/**
* @Then the a message with this text should be displayed on the webUI:
Copy link
Contributor

Choose a reason for hiding this comment

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

s/Then the a message/Then a message

@codecov
Copy link

codecov bot commented Apr 18, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #31168   +/-   ##
=========================================
  Coverage     62.55%   62.55%           
  Complexity    18279    18279           
=========================================
  Files          1147     1147           
  Lines         68472    68472           
  Branches       1234     1234           
=========================================
  Hits          42831    42831           
  Misses        25280    25280           
  Partials        361      361
Flag Coverage Δ Complexity Δ
#javascript 52.05% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 63.74% <ø> (ø) 18279 <ø> (ø) ⬇️

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 8ba3d9e...a701040. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 18, 2018

Codecov Report

Merging #31168 into master will increase coverage by 0.29%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #31168      +/-   ##
============================================
+ Coverage     62.26%   62.56%   +0.29%     
- Complexity    18279    18442     +163     
============================================
  Files          1147     1147              
  Lines         68474    68474              
  Branches       1234     1234              
============================================
+ Hits          42635    42839     +204     
+ Misses        25478    25274     -204     
  Partials        361      361
Flag Coverage Δ Complexity Δ
#javascript 52.05% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 63.75% <ø> (+0.33%) 18442 <ø> (+163) ⬆️
Impacted Files Coverage Δ Complexity Δ
lib/private/Share/Share.php 67.14% <0%> (+0.06%) 508% <0%> (ø) ⬇️
lib/private/DB/QueryBuilder/QueryBuilder.php 91.66% <0%> (+0.46%) 68% <0%> (ø) ⬇️
lib/private/Files/Cache/Cache.php 97.59% <0%> (+0.9%) 107% <0%> (ø) ⬇️
lib/private/DB/MDB2SchemaWriter.php 93.75% <0%> (+1.04%) 34% <0%> (ø) ⬇️
lib/private/DB/MDB2SchemaManager.php 91.22% <0%> (+1.75%) 17% <0%> (ø) ⬇️
lib/private/AllConfig.php 92% <0%> (+2.4%) 45% <0%> (ø) ⬇️
lib/private/Repair/RepairInvalidShares.php 97.26% <0%> (+2.73%) 17% <0%> (ø) ⬇️
lib/private/Repair/RepairMismatchFileCachePath.php 85.2% <0%> (+3.6%) 49% <0%> (ø) ⬇️
lib/private/DB/ConnectionFactory.php 82.89% <0%> (+3.94%) 21% <0%> (ø) ⬇️
lib/private/DB/Adapter.php 88.88% <0%> (+6.17%) 25% <0%> (ø) ⬇️
... and 4 more

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 5985706...2fcfa9e. Read the comment docs.

@paurakhsharma
Copy link
Member Author

@phil-davis I have added some more tests, can you review it.

@paurakhsharma paurakhsharma force-pushed the reset-password-test branch 2 times, most recently from bce86b2 to f9e47c3 Compare April 18, 2018 10:02
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.

This looks really good. I just made some small comments about names of methods...

*
* @return void
*/
public function theAMessageWithThisTextShouldBeDisplayedOnTheWebui(PyStringNode $string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not so important, but you can start this function name just with aMessageWith

*
* @return Page
*/
private function forgotPasswordField() {
Copy link
Contributor

Choose a reason for hiding this comment

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

The UI text has "reset" and the exception message below has "reset". So this method could be called resetPasswordField()
Otherwise there is sometimes "lost", "forgot" and "reset" for similar things.

Feature: send password reset email
As a user
I want to reset my password
So that I can login my account with new password
Copy link
Contributor

Choose a reason for hiding this comment

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

So that I can login to my account again after forgetting the password

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the review and suggestions.
I will fix it right away.

@phil-davis
Copy link
Contributor

@paurakhsharma please make a backport PR to stable10

@phil-davis phil-davis merged commit 8a52635 into owncloud:master Apr 19, 2018
@paurakhsharma paurakhsharma deleted the reset-password-test branch April 19, 2018 05:31
@paurakhsharma
Copy link
Member Author

backport in #31192

paurakhsharma pushed a commit to paurakhsharma/owncloud-core that referenced this pull request Apr 19, 2018
@PVince81 PVince81 modified the milestones: development, QA Jun 13, 2018
@lock
Copy link

lock bot commented Jul 31, 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 Jul 31, 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.

5 participants