-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07307d7
commit 85445f2
Showing
2 changed files
with
53 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
Feature: Create a new page | ||
|
||
As a spotted page manager | ||
As a user | ||
I want to create a page to my educational institution | ||
So that I can manage the page of my educational institution | ||
So that there is a page to my educational institution on the app | ||
|
||
Background: I am logged in | ||
Given I logged in successfully | ||
|
||
Scenario: spotted page manager clicks the create new page button with valid data and all fields filled except "background_image" | ||
Scenario: User clicks the create new page button with valid data | ||
Given I am on the create new page page | ||
When I fill the create new page form | ||
And I select manual approve | ||
And I select to not request to participate | ||
And I click the Cadastrar button | ||
Then I should see the initial user page | ||
|
||
Scenario: spotted page manager clicks the create new page button with invalid data | ||
Scenario Outline: User clicks the create new page button with invalid data | ||
Given I am on the create new page page | ||
When I fill the create new page form with invalid data | ||
When I fill the create new page form | ||
And I fill in "<form field>" with "<value>" | ||
And I select manual approve | ||
And I select to not request to participate | ||
And I click the Cadastrar button | ||
Then I should see the red failed toast | ||
|
||
Examples: | ||
| form field | value | | ||
| college_name | | | ||
| college_initials | nove letras | | ||
| college_city | | | ||
| college_state | | | ||
| college_state | São Paulo | | ||
| college_country | | | ||
| college_font_color | | | ||
| college_background_color | | |
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