1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +12:00

cypress test fixed

This commit is contained in:
Victoria Sloan 2020-09-05 00:03:08 +01:00
parent 63301eb638
commit 650503fd82
3 changed files with 4 additions and 3 deletions

View file

@ -52,7 +52,7 @@ Cypress.Commands.add("createApp", name => {
.type("test")
cy.contains("Submit").click()
cy.contains("Create New Table", {
timeout: 10000,
timeout: 20000,
}).should("be.visible")
})
})
@ -143,7 +143,7 @@ Cypress.Commands.add("createScreen", (screenName, route) => {
if (route) {
cy.get("[data-cy=new-screen-dialog] input:last").type(route)
}
cy.get(".uk-modal-footer").within(() => {
cy.get("[data-cy=create-screen-footer]").within(() => {
cy.contains("Create Screen").click()
})
cy.get(".nav-items-container").within(() => {

View file

@ -1,4 +1,5 @@
<script>
import Modal from "./Modal.svelte"
import { SettingsIcon } from "components/common/Icons/"
import { getContext } from "svelte"
import { isActive, goto, layout } from "@sveltech/routify"

View file

@ -96,7 +96,7 @@
<Spacer extraLarge />
<div class="modal-footer">
<div data-cy="create-screen-footer" class="modal-footer">
<Button secondary medium on:click={cancel}>Cancel</Button>
<Button blue medium on:click={save}>Create Screen</Button>
</div>