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({
|
module.exports = defineConfig({
|
||||||
e2e: {
|
e2e: {
|
||||||
projectId: "qa7fe2",
|
projectId: "qa7fe2",
|
||||||
defaultCommandTimeout: 10000,
|
defaultCommandTimeout: 60000,
|
||||||
pageLoadTimeout: 180000,
|
pageLoadTimeout: 180000,
|
||||||
chromeWebSecurity: false,
|
chromeWebSecurity: false,
|
||||||
baseUrl: "http://localhost:3000",
|
baseUrl: "http://localhost:3000",
|
||||||
|
|||||||
@ -3,7 +3,6 @@ import { When } from "@badeball/cypress-cucumber-preprocessor";
|
|||||||
When("mention {string} in the text", mention => {
|
When("mention {string} in the text", mention => {
|
||||||
cy.get(".ProseMirror")
|
cy.get(".ProseMirror")
|
||||||
.type(" @");
|
.type(" @");
|
||||||
cy.get(".suggestion-list__item")
|
cy.contains(".suggestion-list__item", mention)
|
||||||
.contains(mention)
|
|
||||||
.click();
|
.click();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user