Try to fix intermitent failing Cypress test for notification

This commit is contained in:
Wolfgang Huß 2019-09-27 13:10:23 +02:00
parent 1543aa4510
commit cee0a27b14
2 changed files with 5 additions and 3 deletions

View File

@ -351,10 +351,12 @@ When("I log in with the following credentials:", table => {
});
When("open the notification menu and click on the first item", () => {
cy.get(".notifications-menu").click();
cy.get(".notifications-menu").invoke('show').click(); // "invoke('show')" because of the delay for show the menu
cy.get(".notification-mention-post")
.first()
.click();
.click({
force: true
});
});
Then("see {int} unread notifications in the top menu", count => {

View File

@ -1,4 +1,4 @@
Feature: Notifications for a mentions
Feature: Notification for a mention
As a user
I want to be notified if sb. mentions me in a post or comment
In order join conversations about or related to me