1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/features/desktop/main_page.feature
2018-12-14 05:45:31 +05:00

54 lines
1.7 KiB
Gherkin

Feature: Main page
Scenario: as a visitor
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the join button
Then I see membership application creation form
Scenario: as a guest account
Given I am signed in as guest
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the join button
Then I see membership application creation form
Scenario: as a usual account
Given I am signed in with email "user@example.com"
When I visit the main page
Then I see the main page
And I see the join button
And I do not see the membership application button
When I click the join button
Then I see membership application creation form
Scenario: when already sent a membership application as a visitor
When I send a membership application
Then I see the membership application tracking page
When I visit the main page
Then I see the main page
And I do not see the join button
And I see the membership application button
When I click the membership application button
Then I see the membership application tracking page
Scenario: when already sent a membership application as a usual account
Given I am signed in with email "user@example.com"
When I send a membership application
Then I see the membership application tracking page
When I visit the main page
Then I see the main page
And I do not see the join button
And I see the membership application button
When I click the membership application button
Then I see the membership application tracking page