Skip to content

Commit

Permalink
add fixme w/ issue #
Browse files Browse the repository at this point in the history
  • Loading branch information
seve committed Feb 13, 2024
1 parent a681d42 commit f92ac48
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions client/__tests__/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,31 +152,33 @@ describe("metadata loads", () => {
}
});

test("categories and values from dataset appear and properly truncate if applicable", async ({
page,
}) => {
await goToPage(page, pageURLTruncate);
// TODO(seve) #753
test.fixme(
"categories and values from dataset appear and properly truncate if applicable",
async ({ page }) => {
await goToPage(page, pageURLTruncate);

for (const label of Object.keys(
dataTruncate.categorical
) as (keyof typeof dataTruncate.categorical)[]) {
const element = await page.getByTestId(`category-${label}`).innerHTML();
for (const label of Object.keys(
dataTruncate.categorical
) as (keyof typeof dataTruncate.categorical)[]) {
const element = await page.getByTestId(`category-${label}`).innerHTML();

expect(element).toMatchSnapshot();
expect(element).toMatchSnapshot();

await page.getByTestId(`${label}:category-expand`).click();
await page.getByTestId(`${label}:category-expand`).click();

const categories = await getAllCategoriesAndCounts(label, page);
const categories = await getAllCategoriesAndCounts(label, page);

expect(Object.keys(categories)).toMatchObject(
Object.keys(dataTruncate.categorical[label])
);
expect(Object.keys(categories)).toMatchObject(
Object.keys(dataTruncate.categorical[label])
);

expect(Object.values(categories)).toMatchObject(
Object.values(dataTruncate.categorical[label])
);
expect(Object.values(categories)).toMatchObject(
Object.values(dataTruncate.categorical[label])
);
}
}
});
);

test("continuous data appears", async ({ page }) => {
await goToPage(page);
Expand Down

0 comments on commit f92ac48

Please sign in to comment.