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

Add when step to create new regular user using api for the acceptance tests #36724

Merged

Conversation

jasson99
Copy link
Contributor

@jasson99 jasson99 commented Jan 9, 2020

Description

Add when step to create a new regular user in the acceptance tests.

Related Issue

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@codecov
Copy link

codecov bot commented Jan 9, 2020

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #36724   +/-   ##
=========================================
  Coverage     64.68%   64.68%           
  Complexity    19118    19118           
=========================================
  Files          1269     1269           
  Lines         74775    74775           
  Branches       1320     1320           
=========================================
  Hits          48369    48369           
  Misses        26018    26018           
  Partials        388      388
Flag Coverage Δ Complexity Δ
#javascript 54.12% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.85% <ø> (+0.17%) 19118 <ø> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
apps/files_external/lib/Lib/Storage/SFTP.php 57.48% <0%> (ø) 0% <0%> (ø) ⬇️

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 47d1470...42e413e. Read the comment docs.

Copy link
Contributor

@haribhandari07 haribhandari07 left a comment

Choose a reason for hiding this comment

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

Instead of adding when you can split given-when like @kiranparajuli589 did

@jasson99 jasson99 force-pushed the createRegularUserWithSameEmailAddressOfGuestUser branch 3 times, most recently from 248077c to 3f7e901 Compare January 9, 2020 06:28
Copy link
Contributor

@haribhandari07 haribhandari07 left a comment

Choose a reason for hiding this comment

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

LGTM

@haribhandari07
Copy link
Contributor

Suggestion: Change the description and mention the related issues, PRs

@jasson99 jasson99 changed the title Create regular user with same email address of guest user Add when step to create new regular user for the acceptance test Jan 9, 2020
@jasson99 jasson99 changed the title Add when step to create new regular user for the acceptance test Add when step to create new regular user with email and without password using api Jan 9, 2020
@jasson99 jasson99 changed the title Add when step to create new regular user with email and without password using api Add when step to create new regular user using api for the acceptance tests Jan 9, 2020
@@ -365,6 +365,7 @@ public function theseUsersHaveBeenCreatedWithoutSkeletonFiles(TableNode $table)

/**
* @Given /^these users have been created with ?(default attributes and|) skeleton files ?(but not initialized|):$/
* @When /^the administrator creates a regular user with ?(default attributes and|) skeleton files ?(but not initialized|):$/
Copy link
Contributor

@phil-davis phil-davis Jan 9, 2020

Choose a reason for hiding this comment

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

Suggested change
* @When /^the administrator creates a regular user with ?(default attributes and|) skeleton files ?(but not initialized|):$/
* @When /^the administrator creates these users with ?(default attributes and|) skeleton files ?(but not initialized|):$/

At the moment it sounds like no table is required. But actually this step has to have a table of users, and it can have 1 or many users that can have any user names.

@jasson99 jasson99 force-pushed the createRegularUserWithSameEmailAddressOfGuestUser branch from 3f7e901 to 42e413e Compare January 9, 2020 11:13
@phil-davis phil-davis merged commit 0cdf707 into master Jan 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the createRegularUserWithSameEmailAddressOfGuestUser branch January 9, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants