Skip to content

Commit

Permalink
receive_notification caminho triste
Browse files Browse the repository at this point in the history
  • Loading branch information
natalypatti committed Dec 4, 2019
1 parent 60a0687 commit dd256da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/app/features/receive_notification.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ As a student
I want to receive notifications from spotted
So that I can follow spotted updates

Background: There is a spotted and a comment created
Scenario: Student clicks on bell button
Given There is a comment created
And I logged in successfully

Scenario: Student clicks on bell button
Given I accessed a college page successfully
Given I click on Ativar Notificações
And I click on bell button
Then I should see my notifications

Scenario: Student clicks on bell button but has no notification
Given There is a spotted created
And I logged in successfully
And I am on the college page
And I click on Ativar Notificações
And I click on bell button
Then I shouldnt see my notifications
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

Then("I should see my notifications") do
expect(page).to have_xpath('.//div', text: "Novo comentário")
end

Then("I shouldnt see my notifications") do
expect(page).not_to have_xpath('.//div', text: "Novo comentário")
end

0 comments on commit dd256da

Please sign in to comment.