mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix cypress tests (wip)
This commit is contained in:
parent
70d632e392
commit
1b127f1efb
@ -44,7 +44,7 @@ Given('I am logged in with a {string} role', role => {
|
|||||||
|
|
||||||
When('I click on "Report Post" from the content menu of the post', () => {
|
When('I click on "Report Post" from the content menu of the post', () => {
|
||||||
cy.contains('.ds-card', davidIrvingPostTitle)
|
cy.contains('.ds-card', davidIrvingPostTitle)
|
||||||
.find('.content-menu-trigger')
|
.find('.content-menu .base-button')
|
||||||
.click({force: true})
|
.click({force: true})
|
||||||
|
|
||||||
cy.get('.popover .ds-menu-item-link')
|
cy.get('.popover .ds-menu-item-link')
|
||||||
@ -54,7 +54,7 @@ When('I click on "Report Post" from the content menu of the post', () => {
|
|||||||
|
|
||||||
When('I click on "Report User" from the content menu in the user info box', () => {
|
When('I click on "Report User" from the content menu in the user info box', () => {
|
||||||
cy.contains('.ds-card', davidIrvingPostTitle)
|
cy.contains('.ds-card', davidIrvingPostTitle)
|
||||||
.get('.user-content-menu .content-menu-trigger')
|
.get('.user-content-menu .base-button')
|
||||||
.click({ force: true })
|
.click({ force: true })
|
||||||
|
|
||||||
cy.get('.popover .ds-menu-item-link')
|
cy.get('.popover .ds-menu-item-link')
|
||||||
|
|||||||
@ -119,7 +119,7 @@ Then('they should be able to see my social media links', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
When('I delete a social media link', () => {
|
When('I delete a social media link', () => {
|
||||||
cy.get("a[name='delete']")
|
cy.get(".base-button[title='Delete']")
|
||||||
.click()
|
.click()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ Then('it gets deleted successfully', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
When('I start editing a social media link', () => {
|
When('I start editing a social media link', () => {
|
||||||
cy.get("a[name='edit']")
|
cy.get(".base-button[title='Edit']")
|
||||||
.click()
|
.click()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -243,7 +243,7 @@ When("I type in the following text:", text => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Then("I select a category", () => {
|
Then("I select a category", () => {
|
||||||
cy.get("span")
|
cy.get(".base-button")
|
||||||
.contains("Just for Fun")
|
.contains("Just for Fun")
|
||||||
.click();
|
.click();
|
||||||
});
|
});
|
||||||
@ -449,7 +449,7 @@ When("I ", name => {
|
|||||||
When(
|
When(
|
||||||
"I click on {string} from the content menu in the user info box",
|
"I click on {string} from the content menu in the user info box",
|
||||||
button => {
|
button => {
|
||||||
cy.get(".user-content-menu .content-menu-trigger").click();
|
cy.get(".user-content-menu .base-button").click();
|
||||||
cy.get(".popover .ds-menu-item-link")
|
cy.get(".popover .ds-menu-item-link")
|
||||||
.contains(button)
|
.contains(button)
|
||||||
.click({
|
.click({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user