-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #629 from LiskHQ/589-onboarding-tests
Write e2e tests for onboarding - Closes #589
- Loading branch information
Showing
4 changed files
with
121 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
Feature: Onboarding | ||
Scenario: should not start onboarding when not logged in | ||
Given I go to "/" | ||
And I wait 1 seconds | ||
Then I should see no "joyride-tooltip__header" | ||
|
||
Scenario: should start onboarding automatically | ||
Given I'm logged in as "genesis" | ||
And I wait 0.4 seconds | ||
Then I should see text "Welcome to Lisk Hub" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Lisk ID" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Keep the overview" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Send LSK" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Explore the network" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Manage your application" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Access extra features" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "You’ve completed the tour!" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
Then I should see no "joyride-tooltip__header" | ||
|
||
When I click "more menu" | ||
And I click 1 item in setting carousel | ||
And I wait 0.4 seconds | ||
And I click "advancedMode" | ||
And I click 3 item in setting carousel | ||
And I wait 0.4 seconds | ||
And I click "onboarding-setting" | ||
Then I should see text "Welcome to Lisk Hub" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Lisk ID" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Keep the overview" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Send LSK" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Explore the network" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Delegate voting" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Manage your application" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Access extra features" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "You’ve completed the tour!" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
Then I should see no "joyride-tooltip__header" | ||
|
||
When I refresh the page | ||
And I wait 1 seconds | ||
Then I should see no "joyride-tooltip__header" | ||
|
||
When I click "more menu" | ||
And I click 3 item in setting carousel | ||
And I wait 0.4 seconds | ||
And I click "onboarding-setting" | ||
And I wait 0.4 seconds | ||
Then I should see text "Welcome to Lisk Hub" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--primary" | ||
And I wait 0.4 seconds | ||
Then I should see text "Lisk ID" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--skip" | ||
And I wait 0.4 seconds | ||
Then I should see text "Onboarding whenever you need" in "joyride-tooltip__header" element | ||
|
||
And I click "joyride-tooltip__button--skip" | ||
Then I should see no "joyride-tooltip__header" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters