Skip to content

Commit

Permalink
test: remove test that tests removed feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin committed Sep 17, 2024
1 parent 4abbfb7 commit 229ecac
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/tests/multiselect.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,24 +553,4 @@ describe('Multiselect Component', () => {
cy.get('[data-cy="option"]').should('be.visible')
cy.get('[data-cy="spinner"]').should('be.visible')
})

it('can teleport dropdown to body', () => {
const selectOptions = [{value: {abc: 'xyz', test: {xyz: 3}}, label: 'This'}, {
value: 2,
label: 'is'
}, {value: 'haha', label: 'a'}, {value: 4, label: 'test'}]
cy.mount(SMultiselect, {
props: {
selectOptions: selectOptions,
teleport: true,
}
})

cy.get('[data-cy="multiselect"]').click()
cy.get('[data-cy="dropdown"]').should('exist').should('be.visible')
cy.get('[data-cy="optionList"]').should('exist')
cy.get('[data-cy="option"]').should('be.visible')
cy.get('[data-cy="dropdown"]').should('have.css', 'width')
cy.get('[data-cy="dropdown"]').parent().should('match', 'body')
})
})

0 comments on commit 229ecac

Please sign in to comment.