Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: side by side test fixes #989

Merged
merged 7 commits into from
Jun 18, 2024

Conversation

tihuan
Copy link
Contributor

@tihuan tihuan commented Jun 18, 2024

No description provided.

@@ -32,10 +32,6 @@ describe("CellGuideCXG", () => {
test("page launched", async ({ page }, testInfo) => {
await goToPage(page, pageURLCellGuide);

const element = await page.getByTestId("header").innerHTML();

expect(element).toMatchSnapshot();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Chromatic screenshot for better DX. Here and throughout

.getByTestId(`category-${label}`)
.innerHTML();

expect(element).toMatchSnapshot();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this one and the following, since the bottom chromatic snapshot should capture them anyway

/**
* (thuang): If the side panel is not open, don't take its layout choice into account
*/
open &&
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is to resolve the bug when side panel is off, the image layer toggle button would still show up when the main panel is switched to a non-spatial embedding

!isSidePanel &&
!e.currentTarget.value.includes(globals.spatialEmbeddingKeyword)
) {
dispatch({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed anymore, since the toggle state should only be controlled by the image toggle button only

stateChanges.toolSVG
) {
const { tool } = this.state;
this.selectionToolUpdate(stateChanges.tool ? stateChanges.tool : tool!);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be added back to resolve the lasso element missing bug

@tihuan tihuan requested a review from kaloster June 18, 2024 15:23
@tihuan tihuan changed the title test: side by side test fixes test: 991 side by side test fixes Jun 18, 2024
@tihuan tihuan changed the title test: 991 side by side test fixes test: side by side test fixes Jun 18, 2024
@tihuan tihuan force-pushed the kaloster/side-by-side-test-fix branch from e6cccf3 to 2621d08 Compare June 18, 2024 20:41
@tihuan tihuan merged commit 723105a into feat/side-by-side Jun 18, 2024
5 checks passed
@tihuan tihuan deleted the kaloster/side-by-side-test-fix branch June 18, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants