Skip to content

Commit

Permalink
Update test counts
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelot committed Jun 18, 2024
1 parent a50a540 commit e3467f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/gui-v2/src/components/ListView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ describe("ListView", () => {
);

// Filter by China and verify that the count updates
expect(screen.getByText('Viewing 683 companies')).toBeVisible();
expect(screen.getByText('Viewing 678 companies')).toBeVisible();
const regionHeader = screen.getByRole('columnheader', { name: /country/i });
await user.click(getByRole(regionHeader, 'button', { name: /open/i }));
const menu = screen.getByRole('listbox');
await user.click(getByText(menu, 'China'));
expect(screen.getByText('Viewing 43 of 683 companies')).toBeVisible();
expect(screen.getByText('Viewing 43 of 678 companies')).toBeVisible();

// Reset the filters and verify that the count updates
await user.click(screen.getByRole('button', { name: /reset filters/i }));
expect(screen.getByText('Viewing 683 companies')).toBeVisible();
expect(screen.getByText('Viewing 678 companies')).toBeVisible();
}, 20000);


Expand All @@ -49,7 +49,7 @@ describe("ListView", () => {
await user.click(getByRole(companyHeader, 'combobox'));
const menu = screen.getByRole('listbox');
await user.click(getByText(menu, 'S&P 500'));
expect(screen.getByText('Viewing 492 of 683 companies')).toBeVisible();
expect(screen.getByText('Viewing 491 of 678 companies')).toBeVisible();
}, 20000);


Expand Down

0 comments on commit e3467f5

Please sign in to comment.