1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

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
cy.addComponent("Form", "Multi-select Picker").then((componentId) => {
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
cy.getComponent(componentId).find('li').should('have.length', 5)
// Select all items

View file

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