Cypress: update import of current cucumber preprocessor in step definition files

This commit is contained in:
mahula 2022-11-06 16:56:21 +01:00
parent 9cb8e8f9a6
commit d3597e464d
117 changed files with 237 additions and 233 deletions

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I click the checkbox show donations progress bar and save", () => {
cy.get("#showDonations").click()

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("the donation info contains goal {string} and progress {string}", (goal, progress) => {
cy.get('.top-info-bar')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the donation info is {string}", (visibility) => {
cy.get('.top-info-bar')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I open the content menu of post {string}", (title) => {
cy.contains('.post-teaser', title)

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the post with title {string} has a ribbon for pinned posts", (title) => {
cy.get(".post-teaser").contains(title)

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("there is no button to pin a post", () => {
cy.get("a.ds-menu-item-link")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I see a button with the label {string}", label => {
cy.contains("button", label);

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I select {string} in the language menu", language => {
cy.get(".locale-menu")

View File

@ -1,5 +1,5 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import locales from '../../../webapp/locales'
import { Then } from "@badeball/cypress-cucumber-preprocessor";
import locales from '../../../../webapp/locales'
Then("the whole user interface appears in {string}", language => {
const { code } = locales.find((entry) => entry.name === language);

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see only {int} posts on the newsfeed", posts => {
cy.get(".post-teaser")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the page {string} returns a 404 error with a message:", (route, message) => {
cy.request({

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then(`I can't see the moderation menu item`, () => {
cy.get('.avatar-menu-popover')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I can visit the post page', () => {
cy.contains('Fake news').click()

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I click on "Report Post" from the content menu of the post', () => {
cy.contains('.base-card', 'The Truth about the Holocaust')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I click on the author', () => {
cy.get('[data-test="avatarUserLink"]')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I click on the avatar menu in the top right corner", () => {
cy.get(".avatar-menu").click();

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When(/^I confirm the reporting dialog .*:$/, message => {
cy.contains(message) // wait for element to become visible

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I see all the reported posts including from the user who muted me', () => {
cy.get('table tbody').within(() => {

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I see all the reported posts including the one from above', () => {
cy.get('table tbody').within(() => {

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('each list item links to the post page', () => {
cy.contains('The Truth about the Holocaust').click();

View File

@ -1,5 +1,5 @@
import { Given } from "cypress-cucumber-preprocessor/steps";
import { gql } from '../../../backend/src/helpers/jest'
import { Given } from "@badeball/cypress-cucumber-preprocessor";
import { gql } from '../../../../backend/src/helpers/jest'
Given('somebody reported the following posts:', table => {
table.hashes().forEach(({ submitterEmail, resourceId, reasonCategory, reasonDescription }) => {

View File

@ -1,3 +1,5 @@
import { Given } from "@badeball/cypress-cucumber-preprocessor";
Given("there is an annoying user who has muted me", () => {
cy.neode()
.first("User", {

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I start to write a new post with the title {string} beginning with:", (title, intro) => {
cy.get('input[name="title"]')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("mention {string} in the text", mention => {
cy.get(".ProseMirror")

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("open the notification menu and click on the first item", () => {
cy.get(".notifications-menu")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("see {int} unread notifications in the top menu", count => {
cy.get(".notifications-menu")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the notification menu button links to the all notifications page", () => {
cy.get(".notifications-menu")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the unread counter is removed", () => {
cy.get('.notifications-menu .counter-icon')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I comment the following:", async text => {
const comment = text.replace("\n", " ")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see an abbreviated version of my comment", () => {
cy.get("article.comment-card")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see my comment", () => {
cy.get("article.comment-card p")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see the entirety of my comment", () => {
cy.get("article.comment-card")

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I type in a comment with {int} characters", size => {
var c="";

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("it should create a mention in the CommentForm", () => {
cy.get(".ProseMirror a")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("my comment should be successfully created", () => {
cy.get(".iziToast-message").contains("Comment submitted!");

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the editor should be cleared", () => {
cy.get(".ProseMirror p").should("have.class", "is-empty");

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I choose {string} as the title", async title => {
const lastPost = {}

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the post was saved successfully", async () => {
cy.task('getValue', 'lastPost').then(lastPost => {

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I add all required fields", () => {
cy.get('input[name="title"]')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should be able to {string} a teaser image", condition => {
// cy.reload()

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('my post has a teaser image', () => {
cy.get('.contribution-form .image')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the first image should not be displayed anymore", () => {
cy.get(".hero-image")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the post was saved successfully with the {string} teaser image", condition => {
cy.get(".base-card > .title")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('the {string} post was saved successfully without a teaser image', condition => {
cy.get(".base-card > .title")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the post shows up on the newsfeed at position {int}", index => {
const selector = `.post-teaser:nth-child(${index}) > .base-card`;

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I select a post entry", () => {
cy.get(".searchable-input .search-post")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I select a user entry", () => {
cy.get(".searchable-input .user-teaser")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should have one item in the select dropdown", () => {
cy.get(".searchable-input .ds-select-dropdown").should($li => {

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should not see posts without the searched-for term in the select dropdown", () => {
cy.get(".ds-select-dropdown")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see posts with the searched-for term in the select dropdown", () => {
cy.get(".ds-select-dropdown")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see the following posts on the search results page:", table => {
table.hashes().forEach(({ title }) => {

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see the following users in the select dropdown:", table => {
cy.get(".search-heading").should("contain", "Users");

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I type {string} and press Enter", value => {
cy.get(".searchable-input .ds-select input")

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I type {string} and press escape", value => {
cy.get(".searchable-input .ds-select input")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the search field should clear", () => {
cy.get(".searchable-input .ds-select input")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the search parameter equals {string}", search => {
cy.location("search")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I am logged in with username {string}", name => {
cy.get(".avatar-menu").click();

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I block the user {string}", name => {
cy.neode()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I should not see {string} button', button => {
cy.get('.base-card .action-buttons')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should see no users in my blocked users list", () => {
cy.get('.ds-placeholder')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I should see the {string} button', button => {
cy.get('.base-card .action-buttons .base-button')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I {string} see {string} from the content menu in the user info box", (condition, link) => {
cy.get(".user-content-menu .base-button").click()

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("a user has blocked me", () => {
cy.neode()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("they should not see the comment form", () => {
cy.get(".base-card").children().should('not.have.class', 'comment-form')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("they should see a text explaining why commenting is not possible", () => {
cy.get('.ds-placeholder').should('contain', "Commenting is not possible at this time on this post.")

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I mute the user {string}", name => {
cy.neode()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the list of posts of this user is empty", () => {
cy.get(".base-card").not(".post-link");

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the search should contain the annoying user", () => {
cy.get(".searchable-input .ds-select-dropdown")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("the search should not contain posts by the annoying user", () => {
cy.get(".searchable-input .ds-select-dropdown").should($li => {

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I click on element with ID {string}", (id) => {
cy.get('#' + id).click()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I click save", () => {
cy.get(".save-button").click()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I click the checkbox show donations progress bar and save", () => {
cy.get("#showDonations").click()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I cannot upload a picture", () => {
cy.get(".base-card")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I should be able to change my profile picture", () => {
const avatarUpload = "onourjourney.png";

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I can login successfully", () => {
// cy.reload();

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I cannot login anymore", password => {
//cy.reload();

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I cannot submit the form", () => {
cy.get("button[type=submit]")

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I fill the password form with:", table => {
table = table.rowsHash();

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I submit the form", () => {
cy.get("form").submit();

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I can see my new name {string} when I click on my profile picture in the top right', name => {
cy.get('.avatar-menu').click() // open

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I have the following self-description:', text => {
cy.get('textarea[id=about]')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I save {string} as my location', location => {
cy.get('input[id=city]').type(location)

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I save {string} as my new name', name => {
cy.get('input[id=name]')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('they can see the following text in the info box below my avatar:', text => {
cy.contains(text)

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('they can see {string} in the info box below my avatar', location => {
cy.contains(location)

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I add a social media link', () => {
cy.get('button')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I can cancel editing', () => {
cy.get('button#cancel')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I delete a social media link', () => {
cy.get(".base-button[title='Delete']")

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I edit and save the link', () => {
cy.get('input#editSocialMedia')

View File

@ -1,4 +1,4 @@
import { Given } from "cypress-cucumber-preprocessor/steps";
import { Given } from "@badeball/cypress-cucumber-preprocessor";
Given('I have added a social media link', () => {
cy.visit('/settings/my-social-media')

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I start editing a social media link', () => {
cy.get(".base-button[title='Edit']")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('the new social media link shows up on the page', () => {
cy.get('a[href="https://freeradical.zone/peter-pan"]')

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('the new url is displayed', () => {
cy.get("a[href='https://freeradical.zone/tinkerbell']")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('the old url is not displayed', () => {
cy.get("a[href='https://freeradical.zone/peter-pan']")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('they should be able to see my social media links', () => {
cy.get('.base-card')

View File

@ -1,5 +1,5 @@
import { Given } from "cypress-cucumber-preprocessor/steps";
import encode from '../../../backend/src/jwt/encode'
import { Given } from "@badeball/cypress-cucumber-preprocessor";
import encode from '../../../../backend/src/jwt/encode'
Given("I am logged in as {string}", slug => {
cy.neode()

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then("I am on page {string}", page => {
cy.location("pathname")

View File

@ -1,4 +1,4 @@
import { Then } from "cypress-cucumber-preprocessor/steps";
import { Then } from "@badeball/cypress-cucumber-preprocessor";
Then('I can see the following table:', table => {
const headers = table.raw()[0]

View File

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

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I click on {string}", element => {
const elementSelectors = {

Some files were not shown because too many files have changed in this diff Show More