From 02cd897947ce349be7863e8450bbf8c772526805 Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 8 Jun 2023 13:01:07 +0200 Subject: [PATCH] set default cypress timeout up and merge get and contain --- cypress/cypress.config.js | 2 +- .../Notification.Mention/mention_{string}_in_the_text.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cypress/cypress.config.js b/cypress/cypress.config.js index db8ea73e2..9885eb7a2 100644 --- a/cypress/cypress.config.js +++ b/cypress/cypress.config.js @@ -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", diff --git a/cypress/support/step_definitions/Notification.Mention/mention_{string}_in_the_text.js b/cypress/support/step_definitions/Notification.Mention/mention_{string}_in_the_text.js index e1bd19da0..d404356f9 100644 --- a/cypress/support/step_definitions/Notification.Mention/mention_{string}_in_the_text.js +++ b/cypress/support/step_definitions/Notification.Mention/mention_{string}_in_the_text.js @@ -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(); });