feat: add nomcom expand panel test (with missing file)
Commit ready for merge. - Legacy-Id: 19697
This commit is contained in:
parent
8ff662aed9
commit
8ab1408b66
27
cypress/integration/meeting/nomcom.spec.js
Normal file
27
cypress/integration/meeting/nomcom.spec.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
/// <reference types="cypress" />
|
||||
|
||||
describe('nomcom', () => {
|
||||
before(() => {
|
||||
cy.visit('/nomcom/2021/expertise/')
|
||||
})
|
||||
|
||||
it('expertises with expandable panels should expand', () => {
|
||||
cy.get('.nomcom-req-positions-tabs > li > a').each($tab => {
|
||||
cy.wrap($tab).click()
|
||||
cy.wrap($tab).parent().should('have.class', 'active')
|
||||
|
||||
cy.wrap($tab).invoke('attr', 'href').then($tabId => {
|
||||
cy.get($tabId).should('have.class', 'tab-pane').and('have.class', 'active').and('be.visible')
|
||||
|
||||
cy.get($tabId).then($tabContent => {
|
||||
if ($tabContent.find('.generic_iesg_reqs_header').length) {
|
||||
cy.wrap($tabContent).find('.generic_iesg_reqs_header').click()
|
||||
cy.wrap($tabContent).find('.generic_iesg_reqs_header').invoke('attr', 'href').then($expandId => {
|
||||
cy.get($expandId).should('be.visible')
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue