From ec61bcd701876714593a4bb2e517ec00c962461f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 6 Mar 2026 11:47:25 +0800 Subject: [PATCH] Fix E2E tests for PrimeVue 4 CSS class rename (p-dropdown to p-select) Co-Authored-By: Claude Opus 4.6 --- cypress/e2e/compare.cy.js | 8 ++++---- cypress/e2e/filesCompare.cy.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cypress/e2e/compare.cy.js b/cypress/e2e/compare.cy.js index 1026c4a..e9c37cf 100644 --- a/cypress/e2e/compare.cy.js +++ b/cypress/e2e/compare.cy.js @@ -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); }); diff --git a/cypress/e2e/filesCompare.cy.js b/cypress/e2e/filesCompare.cy.js index fe19da4..d65b348 100644 --- a/cypress/e2e/filesCompare.cy.js +++ b/cypress/e2e/filesCompare.cy.js @@ -28,7 +28,7 @@ describe('Files Page - COMPARE Tab', () => { }); it('shows sorting dropdown', () => { - cy.get('.p-dropdown').should('exist'); + cy.get('.p-select').should('exist'); }); it('grid cards display file names', () => { @@ -37,8 +37,8 @@ describe('Files Page - COMPARE Tab', () => { }); it('clicking sorting dropdown shows sort options', () => { - cy.get('.p-dropdown').click(); - cy.get('.p-dropdown-items').should('be.visible'); - cy.contains('.p-dropdown-item', 'By File Name').should('exist'); + cy.get('.p-select').click(); + cy.get('.p-select-list').should('be.visible'); + cy.contains('.p-select-option', 'By File Name').should('exist'); }); });