Skip to content

Commit

Permalink
fix: integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalee committed Sep 20, 2024
1 parent 19ad12f commit e148f63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ describe('ExtractionTable', () => {
});

it('should save the filter and sorting to the table state', () => {
cy.contains('Year').click();
cy.get('[data-testid="ArrowDownwardIcon"]').eq(0).click(); // click on year sort
cy.get('input').eq(1).click();
cy.get(`input`).eq(1).type('Activation');

Expand All @@ -674,7 +674,7 @@ describe('ExtractionTable', () => {
cy.window().then((window) => {
const state = window.sessionStorage.getItem(`abc123-extraction-table`);
const parsedState = JSON.parse(state || '{}');
console.log(parsedState);

cy.wrap(parsedState).should('deep.equal', {
columnFilters: [{ id: 'name', value: 'Activation' }],
sorting: [{ id: 'year', desc: true }],
Expand Down

0 comments on commit e148f63

Please sign in to comment.