fix reporting e2e tests

This commit is contained in:
mahula 2023-06-03 07:14:59 +02:00
parent 90ec14d883
commit d70030387d
3 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@ const { parsed } = dotenv.config({ path: '../backend/.env' })
module.exports = defineConfig({
e2e: {
projectId: "qa7fe2",
defaultCommandTimeout: 10000,
chromeWebSecurity: false,
baseUrl: "http://localhost:3000",
specPattern: "cypress/e2e/**/*.feature",

View File

@ -3,7 +3,7 @@ import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I click on "Report Post" from the content menu of the post', () => {
cy.contains('.base-card', 'The Truth about the Holocaust')
.find('.content-menu .base-button')
.click({force: true})
.click()
cy.get('.popover .ds-menu-item-link')
.contains('Report Post')

View File

@ -2,7 +2,7 @@ import { Given } from "@badeball/cypress-cucumber-preprocessor";
Given("there is an annoying user who has muted me", () => {
cy.neode()
.first("User", {
.firstOf("User", {
role: 'moderator'
})
.then(mutedUser => {