Skip to content

Commit

Permalink
fix: reverted the changes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alionazherdetska committed Feb 10, 2025
1 parent 0068a0a commit 63ff138
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/components/cypress/e2e/collapsible.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,8 @@ const COLLAPSIBLE_ID = '6a91848c-16ec-4a23-bc45-51c797b5b2c3';
describe('collapsible', () => {
describe('default', () => {
beforeEach(() => {
cy.getComponents(
COLLAPSIBLE_ID,
'initially-collapsed',
'post-collapsible',
'post-collapsible-trigger',
);

cy.get('@collapsible').invoke('attr', 'id').then((id) => {
const safeId = Cypress.$.escapeSelector(id);
cy.wrap(`#${safeId}`).as('collapsibleSafeSelector');
});

cy.get('@collapsible-trigger').find('.btn').as('trigger');
cy.getComponents(COLLAPSIBLE_ID, 'default', 'post-collapsible', 'post-collapsible-trigger');
cy.get('@collapsible-trigger').find('.btn').as('trigger');
});

it('should have a collapsible', () => {
Expand Down

0 comments on commit 63ff138

Please sign in to comment.