Fixing some issues with cypress tests and screens getting multipled.
This commit is contained in:
parent
c594ce20b7
commit
a04c930c1e
|
@ -37,7 +37,7 @@ Cypress.Commands.add("createApp", name => {
|
||||||
cy.contains("Create app").click()
|
cy.contains("Create app").click()
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
cy.contains("Budibase DB", {
|
cy.get(".selected > .content", {
|
||||||
timeout: 20000,
|
timeout: 20000,
|
||||||
}).should("be.visible")
|
}).should("be.visible")
|
||||||
})
|
})
|
||||||
|
@ -51,7 +51,7 @@ Cypress.Commands.add("deleteApp", () => {
|
||||||
.then(val => {
|
.then(val => {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
if (val.length > 0) {
|
if (val.length > 0) {
|
||||||
cy.get(".hoverable > use").click()
|
cy.get(".title > :nth-child(3) > .spectrum-Icon").click()
|
||||||
cy.contains("Delete").click()
|
cy.contains("Delete").click()
|
||||||
cy.get(".spectrum-Button--warning").click()
|
cy.get(".spectrum-Button--warning").click()
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ Cypress.Commands.add("createTestTableWithData", () => {
|
||||||
|
|
||||||
Cypress.Commands.add("createTable", tableName => {
|
Cypress.Commands.add("createTable", tableName => {
|
||||||
// Enter table name
|
// Enter table name
|
||||||
cy.get("Budibase DB")
|
cy.contains("Budibase DB").click()
|
||||||
cy.contains("Create new table").click()
|
cy.contains("Create new table").click()
|
||||||
cy.get(".spectrum-Modal").within(() => {
|
cy.get(".spectrum-Modal").within(() => {
|
||||||
cy.get("input").first().type(tableName).blur()
|
cy.get("input").first().type(tableName).blur()
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Navigate to new table
|
// Navigate to new table
|
||||||
$goto(`./table/${table._id}`)
|
$goto(`../../table/${table._id}`)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { Button, Heading, Body, Layout, Modal, Divider } from "@budibase/bbui"
|
import { Button, Heading, Body, Layout, Modal, Divider } from "@budibase/bbui"
|
||||||
import CreateTableModal from "components/backend/TableNavigator/modals/CreateTableModal.svelte"
|
import CreateTableModal from "components/backend/TableNavigator/modals/CreateTableModal.svelte"
|
||||||
import ICONS from "components/backend/DatasourceNavigator/icons"
|
import ICONS from "components/backend/DatasourceNavigator/icons"
|
||||||
import { tables, datasources } from "stores/backend"
|
import { tables } from "stores/backend"
|
||||||
import { goto } from "@roxi/routify"
|
import { goto } from "@roxi/routify"
|
||||||
|
|
||||||
let modal
|
let modal
|
||||||
|
@ -29,7 +29,9 @@
|
||||||
{#each $tables.list.filter(table => table.type !== "external") as table}
|
{#each $tables.list.filter(table => table.type !== "external") as table}
|
||||||
<div class="table-list-item" on:click={$goto(`../../table/${table._id}`)}>
|
<div class="table-list-item" on:click={$goto(`../../table/${table._id}`)}>
|
||||||
<Body size="S">{table.name}</Body>
|
<Body size="S">{table.name}</Body>
|
||||||
<Body size="S">display column: {table.primaryDisplay}</Body>
|
{#if table.primaryDisplay}
|
||||||
|
<Body size="S">display column: {table.primaryDisplay}</Body>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue