mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
13 lines
398 B
JavaScript
13 lines
398 B
JavaScript
import { When } from "cypress-cucumber-preprocessor/steps";
|
|
|
|
When('I save {string} as my location', location => {
|
|
cy.get('input[id=city]').type(location)
|
|
cy.get('.ds-select-option')
|
|
.contains(location)
|
|
.click()
|
|
cy.get('[type=submit]')
|
|
.click()
|
|
.not('[disabled]')
|
|
cy.get('.iziToast-message')
|
|
.should('contain', 'Your data was successfully updated')
|
|
}) |