set default cypress timeout up and merge get and contain

This commit is contained in:
mahula 2023-06-08 13:01:07 +02:00
parent abc272bfd9
commit 02cd897947
2 changed files with 2 additions and 3 deletions

View File

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

View File

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