mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix reporting e2e tests
This commit is contained in:
parent
90ec14d883
commit
d70030387d
@ -37,6 +37,7 @@ const { parsed } = dotenv.config({ path: '../backend/.env' })
|
|||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
e2e: {
|
e2e: {
|
||||||
projectId: "qa7fe2",
|
projectId: "qa7fe2",
|
||||||
|
defaultCommandTimeout: 10000,
|
||||||
chromeWebSecurity: false,
|
chromeWebSecurity: false,
|
||||||
baseUrl: "http://localhost:3000",
|
baseUrl: "http://localhost:3000",
|
||||||
specPattern: "cypress/e2e/**/*.feature",
|
specPattern: "cypress/e2e/**/*.feature",
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { When } from "@badeball/cypress-cucumber-preprocessor";
|
|||||||
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('.base-card', 'The Truth about the Holocaust')
|
cy.contains('.base-card', 'The Truth about the Holocaust')
|
||||||
.find('.content-menu .base-button')
|
.find('.content-menu .base-button')
|
||||||
.click({force: true})
|
.click()
|
||||||
|
|
||||||
cy.get('.popover .ds-menu-item-link')
|
cy.get('.popover .ds-menu-item-link')
|
||||||
.contains('Report Post')
|
.contains('Report Post')
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { Given } from "@badeball/cypress-cucumber-preprocessor";
|
|||||||
|
|
||||||
Given("there is an annoying user who has muted me", () => {
|
Given("there is an annoying user who has muted me", () => {
|
||||||
cy.neode()
|
cy.neode()
|
||||||
.first("User", {
|
.firstOf("User", {
|
||||||
role: 'moderator'
|
role: 'moderator'
|
||||||
})
|
})
|
||||||
.then(mutedUser => {
|
.then(mutedUser => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user