Some changes for addMultiOptionDatatype

This commit is contained in:
Mitch-Budibase 2021-10-08 11:45:54 +01:00
parent 58a40be2e5
commit ce64923813
2 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,8 @@ context("Add Multi-Option Datatype", () => {
// Add multi-select picker to form // Add multi-select picker to form
cy.addComponent("Form", "Multi-select Picker").then((componentId) => { cy.addComponent("Form", "Multi-select Picker").then((componentId) => {
cy.get('[data-cy="field-prop-control"]').type("Test Data").type('{enter}') cy.get('[data-cy="field-prop-control"]').type("Test Data").type('{enter}')
cy.getComponent(componentId).click() cy.wait(1000)
cy.getComponent(componentId).contains("Choose some options").click()
// Check picker has 5 items // Check picker has 5 items
cy.getComponent(componentId).find('li').should('have.length', 5) cy.getComponent(componentId).find('li').should('have.length', 5)
// Select all items // Select all items

View File

@ -5,6 +5,10 @@
// *********************************************** // ***********************************************
// //
Cypress.on('uncaught:exception', (err, runnable) => {
return false
})
Cypress.Commands.add("login", () => { Cypress.Commands.add("login", () => {
cy.visit(`localhost:${Cypress.env("PORT")}/builder`) cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.wait(2000) cy.wait(2000)