Skip to content

Commit

Permalink
post_spotted caminho triste
Browse files Browse the repository at this point in the history
  • Loading branch information
natalypatti committed Dec 4, 2019
1 parent aca43c9 commit 24bc90d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/features/post_spotted.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ Scenario: student write a spotted on the content field and clicks the button "Ma
When I fill the content spotted field with some information
And I click the Mandar spotted button
Then I should see the college page
And I should see my new spotted on the timeline
And I should see my new spotted on the timeline

Scenario: student tries to post a spotted with empty content
Given I click the Novo spotted button
When I dont fill the content spotted field
And I click the Mandar spotted button
Then I should see the red failed toast
4 changes: 4 additions & 0 deletions src/app/features/step_definitions/post_spotted_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
expect(page).to have_xpath('.//div', text: "Spotted Teste")
end

When("I dont fill the content spotted field") do
fill_in "spotted[content]", with: ""
end

# - - -

Given (/^I posted a spotted successfully on the college page$/) do
Expand Down

0 comments on commit 24bc90d

Please sign in to comment.