Fix E2E tests for PrimeVue 4 CSS class rename (p-dropdown to p-select)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,12 +16,12 @@ describe('Compare', () => {
|
||||
'By Last Update (A to Z)', 'By Last Update (Z to A)',
|
||||
];
|
||||
|
||||
cy.get('.p-dropdown').click();
|
||||
cy.get('.p-dropdown-items')
|
||||
.find('.p-dropdown-item')
|
||||
cy.get('.p-select').click();
|
||||
cy.get('.p-select-list')
|
||||
.find('.p-select-option')
|
||||
.then($options => {
|
||||
const actualOptions = $options
|
||||
.map((index, elem) => Cypress.$(elem).find('.p-dropdown-item-label').text())
|
||||
.map((index, elem) => Cypress.$(elem).find('.p-select-option-label').text())
|
||||
.get();
|
||||
expect(actualOptions).to.deep.equal(expectedOptions);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user