Automate user registration with dynamic test data
Preconditions (2)
Step 1: Open the registration page at '/register'
Step 2: Generate a random valid email address
Step 3: Generate a random valid username
Step 4: Enter the generated email in the email input field with id 'email'
Step 5: Enter the generated username in the username input field with id 'username'
Step 6: Enter 'Password123!' in the password input field with id 'password'
Step 7: Enter 'Password123!' in the confirm password input field with id 'confirmPassword'
Step 8: Click the submit button with id 'submitBtn'
Step 9: Wait for the success message with class 'success-message' to appear
✅ Expected Result: The success message 'Registration successful' is displayed confirming the user was registered with the dynamic data