correct dependencies in step definition files

This commit is contained in:
mahula 2023-02-22 11:56:08 +01:00
parent 43ee62787b
commit d7d28798ed
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { When } from "cypress-cucumber-preprocessor/steps";
import { When } from "@badeball/cypress-cucumber-preprocessor";
When('I delete the social media link {string}', (link) => {
cy.get('[data-test="delete-button"]')
@ -9,4 +9,4 @@ When('I delete the social media link {string}', (link) => {
.click()
cy.get('.ds-list-item-content > a')
.contains(link).should('not.exist')
})
})

View File

@ -1,4 +1,4 @@
import { Given } from "cypress-cucumber-preprocessor/steps";
import { Given } from "@badeball/cypress-cucumber-preprocessor";
Given('I have added the social media link {string}', (link) => {
cy.visit('/settings/my-social-media')
@ -10,4 +10,4 @@ Given('I have added the social media link {string}', (link) => {
.click()
cy.get('.ds-list-item-content > a')
.contains(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 toaster with status {string}", (status) => {
switch (status) {
@ -6,4 +6,4 @@ Then("I see a toaster with status {string}", (status) => {
cy.get(".iziToast.iziToast-color-green").should("be.visible");
break;
}
})
})