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>