mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Fixed broken tests
This commit is contained in:
parent
d6968c99ba
commit
91a3b02260
@ -54,7 +54,7 @@ When('I refresh the page', () => {
|
||||
|
||||
When('I log out through the menu in the top right corner', () => {
|
||||
cy.get('.avatar-menu').click()
|
||||
cy.get('.locale-menu-popover')
|
||||
cy.get('.avatar-menu-popover')
|
||||
.find('a')
|
||||
.contains('Logout')
|
||||
.click()
|
||||
@ -62,6 +62,7 @@ When('I log out through the menu in the top right corner', () => {
|
||||
|
||||
Then('I can click on my profile picture in the top right corner', () => {
|
||||
cy.get('.avatar-menu').click()
|
||||
cy.get('.avatar-menu-popover')
|
||||
})
|
||||
|
||||
Then('I can see my name {string} in the dropdown menu', () => {
|
||||
@ -97,8 +98,12 @@ Then(`There should be a locale cooke set to de`, () => {
|
||||
})
|
||||
|
||||
When('I navigate to the administration dashboard', () => {
|
||||
cy.get('.avatar-menu').click()
|
||||
cy.get('a').contains('Admin').click()
|
||||
cy.get('.avatar-menu')
|
||||
.click()
|
||||
.wait(50)
|
||||
cy.get('.avatar-menu-popover')
|
||||
.contains('Admin')
|
||||
.click()
|
||||
})
|
||||
|
||||
When(`I click on {string}`, (linkOrButton) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user