fixed cypress tests
This commit is contained in:
parent
167b1ba3de
commit
1b6131135b
|
@ -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()
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue