mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 11:55:41 +03:00
Cypress docs say it's unsafe to chain after clear. Also added force input to workaround bug with saying input field is disabled.
This commit is contained in:
parent
556302d75d
commit
f26066cf92
@ -19,7 +19,8 @@ context("fetchers", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function addItem(itemName) {
|
function addItem(itemName) {
|
||||||
cy.get("input[name=name]").clear().type(itemName);
|
cy.get("input[name=name]").clear({ force: true });
|
||||||
|
cy.get("input[name=name]").type(itemName, { force: true });
|
||||||
cy.contains("Submit").click();
|
cy.contains("Submit").click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user