cypress test fixed

This commit is contained in:
Victoria Sloan 2020-09-05 00:03:08 +01:00
parent 2aa9f30546
commit a5ce771de8
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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