saleor-dashboard/cypress/support/elements/index.js
Karolina Rakoczy 4013105844
Saleor 2697 tests for updating products (#1060)
* updating products

* updating products

* test for updating
2021-04-21 10:02:48 +02:00

9 lines
225 B
JavaScript

Cypress.Commands.add("getTextFromElement", element =>
cy.get(element).invoke("text")
);
Cypress.Commands.add("clearAndType", { prevSubject: true }, (subject, text) => {
cy.wrap(subject)
.clear()
.type(text);
});