mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Try to fix intermitent failing Cypress test for notification
This commit is contained in:
parent
1543aa4510
commit
cee0a27b14
@ -351,10 +351,12 @@ When("I log in with the following credentials:", table => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
When("open the notification menu and click on the first item", () => {
|
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")
|
cy.get(".notification-mention-post")
|
||||||
.first()
|
.first()
|
||||||
.click();
|
.click({
|
||||||
|
force: true
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Then("see {int} unread notifications in the top menu", count => {
|
Then("see {int} unread notifications in the top menu", count => {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
Feature: Notifications for a mentions
|
Feature: Notification for a mention
|
||||||
As a user
|
As a user
|
||||||
I want to be notified if sb. mentions me in a post or comment
|
I want to be notified if sb. mentions me in a post or comment
|
||||||
In order join conversations about or related to me
|
In order join conversations about or related to me
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user