Merge branch 'merge-6336-into-6339-optimize-event-create-and-update' of github.com:Ocelot-Social-Community/Ocelot-Social into 6379-fix-event-teaser-date-from-start-to-end

This commit is contained in:
Wolfgang Huß 2023-06-08 19:49:17 +02:00
commit 0fa735d764
3 changed files with 5 additions and 4 deletions

View File

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

View File

@ -49,8 +49,9 @@ Cypress.Commands.add(
'mutate',
{ prevSubject: true },
(graphQLClient, mutation, variables, response) => {
return new Cypress.Promise((resolve, reject) => {
return new Cypress.Promise(async (resolve, reject) => {
graphQLClient.request(mutation, variables).then(() => resolve(graphQLClient))
})
})

View File

@ -3,6 +3,7 @@ import { When } from "@badeball/cypress-cucumber-preprocessor";
When("mention {string} in the text", mention => {
cy.get(".ProseMirror")
.type(" @");
cy.contains(".suggestion-list__item", mention)
cy.get(".suggestion-list__item")
.contains(mention)
.click();
});