Skip to content

Commit

Permalink
chore: Upgrade to BlueprintJS 5 - SCE-4 (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster authored Aug 15, 2024
1 parent 0bf3040 commit f3a4184
Show file tree
Hide file tree
Showing 97 changed files with 443 additions and 19,746 deletions.
2 changes: 1 addition & 1 deletion .infra/rdev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stack:
services:
explorer:
image:
tag: sha-517004d0
tag: sha-c96bbaf8
replicaCount: 1
env:
# env vars common to all deployment stages
Expand Down
19 changes: 0 additions & 19 deletions client/__tests__/e2e/__snapshots__/e2e.test.ts.snap

This file was deleted.

2 changes: 1 addition & 1 deletion client/__tests__/e2e/cell-guide.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smoke test suite that will be run in GHA
* Tests included in this file are expected to be relatively stable and test core features
*
* (seve): `locator.click({force: true})` is required on some elements due to weirdness with bp3 elements which route clicks to non-target elements
* (seve): `locator.click({force: true})` is required on some elements due to weirdness with bp5 elements which route clicks to non-target elements
* https://playwright.dev/docs/input#forcing-the-click
*/

Expand Down

This file was deleted.

This file was deleted.

37 changes: 1 addition & 36 deletions client/__tests__/e2e/cellxgeneActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,43 +862,8 @@ export async function selectLayout(
if (graphTsetId === sidePanel) {
layoutChoiceTestId = `${LAYOUT_CHOICE_TEST_ID}-side`;
}

await page.getByTestId(layoutChoiceTestId).click({ force: true });

/**
* (thuang): For blueprint radio buttons, we need to tab first to go to the
* currently selected option before we can use the arrow keys to navigate
*/
await page.keyboard.press("Tab");

const layoutChoices = await await page
.getByTestId(RegExp(`^${LAYOUT_CHOICE_TEST_ID}-label-`))
.allInnerTexts();

const currentlySelectedLayout = await page
.locator("label")
.filter({ has: page.getByRole("radio", { checked: true }) })
.innerText();

const currentIndex = layoutChoices.indexOf(currentlySelectedLayout);
const targetIndex = layoutChoices.findIndex((choice) =>
choice.includes(layoutChoice)
);

const relativePosition = targetIndex - currentIndex;

if (relativePosition > 0) {
// press down arrow N times
for (let i = 0; i < relativePosition; i += 1) {
await page.keyboard.press("ArrowDown");
}
} else {
// press up arrow N times
for (let i = 0; i < Math.abs(relativePosition); i += 1) {
await page.keyboard.press("ArrowUp");
}
}

await page.getByTestId(`layout-choice-label-${layoutChoice}`).click();
await page.getByTestId(layoutChoiceTestId).click({ force: true });

await page.waitForTimeout(WAIT_FOR_SWITCH_LAYOUT_MS);
Expand Down
2 changes: 1 addition & 1 deletion client/__tests__/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Smoke test suite that will be run in GHA
* Tests included in this file are expected to be relatively stable and test core features
*
* (seve): `locator.click({force: true})` is required on some elements due to weirdness with bp3 elements which route clicks to non-target elements
* (seve): `locator.click({force: true})` is required on some elements due to weirdness with bp5 elements which route clicks to non-target elements
* https://playwright.dev/docs/input#forcing-the-click
*/

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f3a4184

Please sign in to comment.