Skip to content

Commit

Permalink
Remove flaky sort test (#916)
Browse files Browse the repository at this point in the history
* Remove flaky sort test

* Automated code formatting

---------

Co-authored-by: Loculus bot <[email protected]>
  • Loading branch information
theosanderson and Loculus bot authored Feb 7, 2024
1 parent f785fa9 commit 2c56e43
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions website/tests/pages/search/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,4 @@ test.describe('The search page', () => {

await expect(searchPage.getEmptyAccessionVersionField()).toHaveValue('');
});

test('should sort result table', async ({ searchPage }) => {
await searchPage.goto();

await searchPage.clickTableHeader(ACCESSION_VERSION);
const ascendingColumn = (await searchPage.getTableContent()).map((row) => row[0]);
const isAscending = ascendingColumn.every((_, i, arr) => i === 0 || arr[i - 1] <= arr[i]);
expect(isAscending, `Rows were: ${ascendingColumn}`).toBeTruthy();

await searchPage.clickTableHeader(ACCESSION_VERSION);
const descendingColumn = (await searchPage.getTableContent()).map((row) => row[0]);
const isDescending = descendingColumn.every((_, i, arr) => i === 0 || arr[i - 1] >= arr[i]);
expect(isDescending, `Rows were: ${ascendingColumn}`).toBeTruthy();
});
});

0 comments on commit 2c56e43

Please sign in to comment.