-
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.
Merge pull request #13 from leogiraldimg/tests/caminhos-tristes
Tests/caminhos tristes
- Loading branch information
Showing
20 changed files
with
262 additions
and
78 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
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,14 +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 | ||
Then I should see the initial user page | ||
|
||
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 | ||
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
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
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
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
Then(/^The college page shouldn't be exist anymore$/) do | ||
expect(page).not_to have_link('Editar', href: '/colleges/#{@college.id}/edit') | ||
end | ||
|
||
Then(/^I cant find that college Editar button$/) do | ||
element = find('.summary', text: 'UT002 - Faculdade Teste 002') | ||
expect(element).not_to have_link('Editar') | ||
end |
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
Oops, something went wrong.