1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

Update cypress tests

This commit is contained in:
Andrew Kingston 2021-03-23 13:31:56 +00:00
parent 938efc5b67
commit 14a4545874
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ context("Create Bindings", () => {
cy.get("[data-cy=setting-text] input")
.type("{{}{{}{{} Current User._id {}}{}}")
.blur()
cy.getComponent(componentId).should("have.text", "{{{ user._id }}")
cy.getComponent(componentId).should("have.text", "{{{ [user].[_id] }}")
})
})

View file

@ -43,7 +43,7 @@ context("Create Components", () => {
it("should create a form and reset to match schema", () => {
cy.addComponent("Form", "Form").then(() => {
cy.get("[data-cy=Settings]").click()
cy.get("[data-cy=setting-datasource]")
cy.get("[data-cy=setting-dataSource]")
.contains("Choose option")
.click()
cy.get(".dropdown")

View file

@ -194,7 +194,7 @@ const getContextBindings = (asset, componentId) => {
*/
const getUserBindings = () => {
let bindings = []
const schema = getSchemaForDatasource({
const { schema } = getSchemaForDatasource({
type: "table",
tableId: TableNames.USERS,
})