mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Sketch 🥒 for #345
This commit is contained in:
parent
f4fc2d6c30
commit
35e2640f37
@ -293,3 +293,19 @@ Then('I can login successfully with password {string}', password => {
|
||||
})
|
||||
cy.get('.iziToast-wrapper').should('contain', "You are logged in!")
|
||||
})
|
||||
|
||||
When('I log in with the following credentials:', table => {
|
||||
const { email, password } = table.hashes()[0]
|
||||
cy.login({ email, password })
|
||||
})
|
||||
|
||||
When('open the notification menu and click on the first item', () => {
|
||||
})
|
||||
|
||||
Then('see {int} unread notifications in the top menu', count => {
|
||||
})
|
||||
|
||||
Then('I get to the post page of {string}', path => {
|
||||
path = path.replace('...', '')
|
||||
cy.location('pathname').should('contain', `/post/${path}`)
|
||||
})
|
||||
|
||||
20
cypress/integration/notifications/mentions.feature
Normal file
20
cypress/integration/notifications/mentions.feature
Normal file
@ -0,0 +1,20 @@
|
||||
Feature: Notifications for a mentioning
|
||||
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
|
||||
|
||||
Background:
|
||||
Given we have the following user accounts:
|
||||
| name | slug | email | password |
|
||||
| Wolle aus Hamburg | wolle-aus-hamburg | wolle@example.org | 1234 |
|
||||
And we have the following posts in our database:
|
||||
| id | title | content |
|
||||
| p1 | Hey Wolle | Hey @wolle-aus-hamburg, how do you do? |
|
||||
|
||||
Scenario:
|
||||
When I log in with the following credentials:
|
||||
| email | password |
|
||||
| wolle@example.org | 1234 |
|
||||
And see 1 unread notifications in the top menu
|
||||
And open the notification menu and click on the first item
|
||||
Then I get to the post page of ".../hey-wolle"
|
||||
Loading…
x
Reference in New Issue
Block a user