Update cypress tests
This commit is contained in:
parent
938efc5b67
commit
14a4545874
|
@ -20,7 +20,7 @@ context("Create Bindings", () => {
|
||||||
cy.get("[data-cy=setting-text] input")
|
cy.get("[data-cy=setting-text] input")
|
||||||
.type("{{}{{}{{} Current User._id {}}{}}")
|
.type("{{}{{}{{} Current User._id {}}{}}")
|
||||||
.blur()
|
.blur()
|
||||||
cy.getComponent(componentId).should("have.text", "{{{ user._id }}")
|
cy.getComponent(componentId).should("have.text", "{{{ [user].[_id] }}")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ context("Create Components", () => {
|
||||||
it("should create a form and reset to match schema", () => {
|
it("should create a form and reset to match schema", () => {
|
||||||
cy.addComponent("Form", "Form").then(() => {
|
cy.addComponent("Form", "Form").then(() => {
|
||||||
cy.get("[data-cy=Settings]").click()
|
cy.get("[data-cy=Settings]").click()
|
||||||
cy.get("[data-cy=setting-datasource]")
|
cy.get("[data-cy=setting-dataSource]")
|
||||||
.contains("Choose option")
|
.contains("Choose option")
|
||||||
.click()
|
.click()
|
||||||
cy.get(".dropdown")
|
cy.get(".dropdown")
|
||||||
|
|
|
@ -194,7 +194,7 @@ const getContextBindings = (asset, componentId) => {
|
||||||
*/
|
*/
|
||||||
const getUserBindings = () => {
|
const getUserBindings = () => {
|
||||||
let bindings = []
|
let bindings = []
|
||||||
const schema = getSchemaForDatasource({
|
const { schema } = getSchemaForDatasource({
|
||||||
type: "table",
|
type: "table",
|
||||||
tableId: TableNames.USERS,
|
tableId: TableNames.USERS,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue