Skip to content

Commit 9b55a32

Browse files
authored
Fix gherkin keywords
Since clicking the "Register User" button is still an action, we should use another `And`. And as "the user should see a success notification" is the first assertion, here's where the `Then` keyword comes.
1 parent ddb1aa2 commit 9b55a32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/commands/prompt.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ describe('Feature: User Registration', () => {
366366
'And the user enters {{password}} in the confirm password field',
367367
'And the user selects "admin" from the role dropdown',
368368
'And the user checks the terms and conditions checkbox',
369-
'Then the user clicks the "Register User" button',
370-
'And the user should see a success notification',
369+
'And the user clicks the "Register User" button',
370+
'Then the user should see a success notification',
371371
'And the user should be added to the user list',
372372
],
373373
{

0 commit comments

Comments
 (0)