mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Remove cypress changes.
This commit is contained in:
parent
719f7c52b6
commit
31e1efd356
@ -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",
|
||||
|
||||
@ -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))
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user