Skip to content

Commit

Permalink
Fixes to issues #33 and #34 (#35)
Browse files Browse the repository at this point in the history
* Fixed issue #34

* Fixed issue #33
  • Loading branch information
stude1 authored Sep 6, 2023
1 parent b24ec17 commit e9a75ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions exercises/04-setups_and_teardowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ ${PASSWORD} = mode
Welcome Page Should Be Visible After Successful Login
Open Browser To Login Page
Enter Username ${USERNAME}
Enter Password ${PASSWORD}
Enter Username
Enter Password
Submit Login Form
Verify That Welcome Page Is Visible
Expand All @@ -36,12 +36,10 @@ Open Browser To Login Page
New Page ${URL}
Enter Username
[Arguments] ${username}
Fill Text id=username_field ${username}
Fill Text id=username_field ${USERNAME}
Enter Password
[Arguments] ${password}
Fill Secret id=password_field ${password}
Fill Secret id=password_field ${PASSWORD}
Submit Login Form
Click id=login_button
Expand Down
1 change: 1 addition & 0 deletions exercises/05-negative_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ After you've finished your list let's start implementing one of those.
- Copy-paste the `Open Browser To Login Page`, `Enter Username`, `Enter Password`, and `Submit Login Form`
keywords from `login.robot` into `invalid_login.robot`. Normally we would not copy-paste keywords around;
we will see later on how to achieve this while keeping ourselves [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself).
- Instead of valid creadentials, use one of the invalid combinations you just created.
- Create a keyword called `Verify That Error Page Is Visible` to check we've landed on the error page.

Run the test with `robot robot/invalid_login.robot` command to verify the results.
Expand Down

0 comments on commit e9a75ce

Please sign in to comment.