diff --git a/src/app/features/receive_notification.feature b/src/app/features/receive_notification.feature index ca7ef6cf..158f4f01 100644 --- a/src/app/features/receive_notification.feature +++ b/src/app/features/receive_notification.feature @@ -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 diff --git a/src/app/features/step_definitions/receive_notification_steps.rb b/src/app/features/step_definitions/receive_notification_steps.rb index f758b234..22f2328f 100644 --- a/src/app/features/step_definitions/receive_notification_steps.rb +++ b/src/app/features/step_definitions/receive_notification_steps.rb @@ -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 \ No newline at end of file