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

TestDriver.ai / Generate Test / test-login-functionality #9

Open
wants to merge 1 commit into
base: testdriver/exploratory-11484949635-1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions testdriver/test-login-functionality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 4.0.71
steps:
- prompt: Click on "Login" in the header.
commands:
- command: hover-text
text: LOGIN
description: login link in the header
action: click
- prompt: Assert that the login form is displayed.
commands:
- command: assert
expect: the login form is displayed
- prompt: Attempt to log in with test credentials.
commands:
- command: hover-text
text: Email address
description: email input field
action: click
- command: type
text: [email protected]
- command: hover-text
text: Password
description: password input field
action: click
- command: type
text: password123
- command: hover-text
text: LOG IN
description: login button
action: click
- prompt: >-
Assert that the dashboard or user page is shown upon successful login. #
Use the content of the file from the environment
commands:
- command: assert
expect: the dashboard is displayed