1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00

fixed cypress tests

This commit is contained in:
Michael Shanks 2020-08-18 21:43:13 +01:00
parent 94b8735c80
commit eb76a0403a
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) => { Cypress.Commands.add("createScreen", (screenName, route) => {
cy.get(".newscreen").click() cy.get(".newscreen").click()
cy.get(".uk-input:first").type(screenName) cy.get("[data-cy=new-screen-dialog] input:first").type(screenName)
if (route) { 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.get(".uk-modal-footer").within(() => {
cy.contains("Create Screen").click() cy.contains("Create Screen").click()

View file

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