mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
set default cypress timeout up and merge get and contain
This commit is contained in:
parent
abc272bfd9
commit
02cd897947
@ -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",
|
||||
|
||||
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user