Skip to content

Commit

Permalink
chore(userAccounts): delete users scenario definition
Browse files Browse the repository at this point in the history
  • Loading branch information
benjohns1 committed Mar 4, 2024
1 parent aad1ff7 commit ee5ee46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion test/cypress/features/userAccounts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@ Scenario: Create a new user with a valid username and password

Scenario: Admin cannot create a user with a duplicate username
Given I am on the user list page
And a user with the name "testuser" already exists
And a user with the name "testuser" exists

When I create a new user with the username "testuser" and password "password12345678"

Then I should see a duplicate username failure message

@implementing
Scenario: Admin can delete users
Given I am on the user list page
And a user with the name "testuser1" exists
And a user with the name "testuser2" exists

When I delete users "testuser1" and "testuser2"

Then I should see a users deleted success message
And I should not see "testuser1" and "testuser2" in the list

@pending
Scenario: Newly created user can log in
Given I have created a new user "testuser" with the password "password12345678"
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/steps/userAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Given("I am on the user list page", () => {
cy.visit("/users");
});

Given("a user with the name {string} already exists", (user: string) => {
Given("a user with the name {string} exists", (user: string) => {
const validPassword = "password12345678";
createUser(user, validPassword)
});
Expand Down

0 comments on commit ee5ee46

Please sign in to comment.