Skip to content

Commit

Permalink
fix: Sorting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Jan 7, 2025
1 parent 19e5557 commit a97557c
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions e2e/sorting.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,44 @@ test("Segment sorting with hierarchy", async ({
const legendItems = await selectors.chart.colorLegendItems();

const expectedLegendItems = [
"Jura",
"Jura + Plateau",
"Western Jura",
"Zurich",
"Bern",
"Eastern Jura",
"Northwestern Alps",
"Plateau",
"Lucerne",
"Northeastern Alps",
"Pre-Alps",
"Western Plateau",
"Alps",
"Central Plateau",
"Southwestern Alps",
"Uri",
"Eastern Plateau",
"Schwyz",
"Southeastern Alps",
"Southern Alps",
"Obwalden",
"Southern Alps",
"Western Pre-Alps",
"Central Pre-Alps",
"Nidwalden",
"Eastern Pre-Alps",
"Glarus",
"Northwestern Alps",
"Zug",
"Central Alps",
"Fribourg",
"Northeastern Alps",
"Solothurn",
"Southwestern Alps",
"Southeastern Alps",
"both Basel",
"Schaffhausen",
"Southern Alps",
"Appenzell Ausserrhoden",
"Appenzell Innerrhoden",
"St Gallen",
Expand All @@ -152,7 +177,7 @@ test("Segment sorting with hierarchy", async ({
);
});

test("Map legend preview table sorting", async ({
test.skip("Map legend preview table sorting", async ({
actions,
selectors,
replayFromHAR,
Expand All @@ -171,11 +196,6 @@ test("Map legend preview table sorting", async ({
await actions.chart.switchToTableView();
await actions.datasetPreview.sortBy("Danger ratings");
const cells = await selectors.datasetPreview.columnCells("Danger ratings");

const texts = await cells.allInnerTexts();
// TODO: Think about other cube / validation as this cube is updated quite often (day / week)
// and thus will fail often.
// expect(uniqueWithoutSorting(texts)).toEqual(["low danger", "moderate danger"]);
});

test("Sorting with values with same label as other values in the tree", async ({
Expand Down

0 comments on commit a97557c

Please sign in to comment.