1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

fixed cypress tests

This commit is contained in:
Michael Shanks 2020-08-18 21:43:13 +01:00
parent 167b1ba3de
commit 1b6131135b
2 changed files with 3 additions and 3 deletions

View file

@ -131,9 +131,9 @@ Cypress.Commands.add("navigateToFrontend", () => {
Cypress.Commands.add("createScreen", (screenName, route) => {
cy.get(".newscreen").click()
cy.get(".uk-input:first").type(screenName)
cy.get("[data-cy=new-screen-dialog] input:first").type(screenName)
if (route) {
cy.get(".uk-input:last").type(route)
cy.get("[data-cy=new-screen-dialog] input:last").type(route)
}
cy.get(".uk-modal-footer").within(() => {
cy.contains("Create Screen").click()

View file

@ -79,7 +79,7 @@
onOk={save}
okText="Create Screen">
<div>
<div data-cy="new-screen-dialog">
<div class="uk-margin">
<Input label="Name" bind:value={name} />
</div>