From 9b55a326ef2b5cd17994503c04c1c6360dcc37be Mon Sep 17 00:00:00 2001 From: Walmyr Date: Mon, 6 Oct 2025 20:32:42 +0200 Subject: [PATCH] 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. --- docs/api/commands/prompt.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/commands/prompt.mdx b/docs/api/commands/prompt.mdx index 6009023338..8bdef6c7be 100644 --- a/docs/api/commands/prompt.mdx +++ b/docs/api/commands/prompt.mdx @@ -366,8 +366,8 @@ describe('Feature: User Registration', () => { 'And the user enters {{password}} in the confirm password field', 'And the user selects "admin" from the role dropdown', 'And the user checks the terms and conditions checkbox', - 'Then the user clicks the "Register User" button', - 'And the user should see a success notification', + 'And the user clicks the "Register User" button', + 'Then the user should see a success notification', 'And the user should be added to the user list', ], {