Merge pull request #6382 from Ocelot-Social-Community/6376-refactor-cypress-upgrad-all-relevant-packages-to-current-versions

test(other): update cypress related packages
This commit is contained in:
mahula 2023-09-26 17:24:14 +02:00 committed by GitHub
commit 6ffc1a1477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1428 additions and 850 deletions

View File

@ -1,6 +1,6 @@
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I comment the following:", async text => {
When("I comment the following:", text => {
const comment = text.replace("\n", " ")
cy.task('pushValue', { name: 'lastComment', value: comment })
cy.get(".editor .ProseMirror").type(comment);

View File

@ -1,6 +1,6 @@
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I choose {string} as the title", async title => {
When("I choose {string} as the title", title => {
const lastPost = {}
lastPost.title = title.replace("\n", " ");
cy.task('pushValue', { name: 'lastPost', value: lastPost })

View File

@ -1,6 +1,6 @@
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the post was saved successfully", async () => {
Then("the post was saved successfully", () => {
cy.task('getValue', 'lastPost').then(lastPost => {
cy.get(".base-card > .title").should("contain", lastPost.title);
cy.get(".content").should("contain", lastPost.content);

View File

@ -1,6 +1,6 @@
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I choose the following text as content:", async text => {
When("I choose the following text as content:", text => {
cy.task('getValue', 'lastPost').then(lastPost => {
lastPost.content = text.replace("\n", " ");
cy.task('pushValue', { name: 'lastPost', value: lastPost })

View File

@ -37,14 +37,14 @@
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/register": "^7.12.10",
"@badeball/cypress-cucumber-preprocessor": "^15.1.4",
"@badeball/cypress-cucumber-preprocessor": "^18.0.6",
"@cypress/browserify-preprocessor": "^3.0.2",
"@faker-js/faker": "8.0.2",
"auto-changelog": "^2.3.0",
"bcryptjs": "^2.4.3",
"cross-env": "^7.0.3",
"cucumber": "^6.0.5",
"cypress": "^12.17.0",
"cypress": "^13.2.0",
"cypress-network-idle": "^1.14.2",
"date-fns": "^2.25.0",
"dotenv": "^16.3.1",

2266
yarn.lock

File diff suppressed because it is too large Load Diff