Skip to content

Made examples more generic and added some more printing examples #24

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Update feature files
  • Loading branch information
corrado4eyes committed Aug 24, 2023
commit f1cd024629ace49a8f4668f0f69deaf43cf4ccc8
2 changes: 1 addition & 1 deletion android/src/androidTest/assets/features/Login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Login
Scenario: Failed attempt with wrong credentials
Given I see the "Login screen" screen
Then I see the "Email" textfield with text "Email"
Then I type "test@test.comunism" in the "Email" field
Then I type "test@test.fail" in the "Email" field
Then I see the "Password" textfield with text "Password"
Then I type "1234" in the "Password" field
Then I see the "Login" button
Expand Down
6 changes: 3 additions & 3 deletions ios/CucumberTests/Features/Home.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Feature: Home
Scenario: Home screen
Given Email is "[email protected]"
Given I am in the "Home" screen
Then I see "[email protected]" text
Given I see the "Home screen" screen
Then I see the "[email protected]" text
Then I see the "Logout" button
Then I press the logout button
Then I press the "Logout" button
Then I see the "Login" screen
46 changes: 40 additions & 6 deletions ios/CucumberTests/Features/Login.feature
Original file line number Diff line number Diff line change
@@ -1,11 +1,45 @@
Feature: Login
Scenario: Login screen
Given I am in the "Login" screen
Given I see the "Login screen" screen
Then I see the "Email" textfield with text "Email"
Then I type "[email protected]" in the email field
Then I see the "Password" textfield with text "Password"
Then I type "1234" in the password field
Then I see the "Login" button
Then I press the login button
Then I see the "Home" screen
Then I see "[email protected]" text

Scenario: Failed attempt with wrong credentials
Given I see the "Login screen" screen
Then I see the "Email" textfield with text "Email"
Then I type "[email protected]" in the "Email" field
Then I see the "Password" textfield with text "Password"
Then I type "1234" in the password field called "Password"
Then I see the "Login" button
Then I press the "Login" button
Then I see the "Incorrect email or password" text

Scenario: Failed attempt with empty email
Given I see the "Login screen" screen
Then I see the "Email" textfield with text "Email"
Then I see the "Password" textfield with text "Password"
Then I type "1234" in the password field called "Password"
Then I see the "Login" button
Then I press the "Login" button
Then I see the "Missing email" text

Scenario: Failed attempt with empty password
Given I see the "Login screen" screen
Then I see the "Email" textfield with text "Email"
Then I see the "Password" textfield with text "Password"
Then I type "alex@alex" in the "Email" field
Then I see the "Login" button
Then I press the "Login" button
Then I see the "Missing password" text

Scenario: Successful attempt
Given I see the "Login screen" screen
Then I see the "Email" textfield with text "Email"
Then I type "[email protected]" in the "Email" field
Then I see the "Password" textfield with text "Password"
Then I type "1234" in the password field called "Password"
Then I see the "Login" button
Then I press the "Login" button
Then I see the "Home screen" text
Then I see the "[email protected]" text