Skip to content

Commit

Permalink
skip loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-s-nava committed Jan 29, 2025
1 parent a1e660f commit ea23f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/tests/e2e/search/search-loading.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
generateRandomString,
} from "tests/e2e/search/searchSpecUtil";

test.describe("Search page tests", () => {
test.describe("Search page loading state", () => {
// Loadiing indicator resolves too quickly to reliably test in e2e.
skip("should show and hide loading state", async () => {
const searchTerm = generateRandomString([4, 5]);
Expand Down
6 changes: 1 addition & 5 deletions frontend/tests/e2e/search/searchSpecUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,10 @@ export async function refreshPageWithCurrentURL(page: Page) {

export async function selectSortBy(page: Page, sortByValue: string) {
await page.locator("#search-sort-by-select").selectOption(sortByValue);
await new Promise((resolve) => setTimeout(resolve, 10000));
await new Promise((resolve) => setTimeout(resolve, 1000));
}

export async function expectSortBy(page: Page, value: string) {
// const selectedValue = await page
// .locator('select[name="search-sort-by"]')
// .inputValue();
// expect(selectedValue).toBe(value);
const sortSelectElement = page.locator('select[name="search-sort-by"]');
await expect(sortSelectElement).toHaveValue(value);
}
Expand Down

0 comments on commit ea23f93

Please sign in to comment.