Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ test.describe("heatmap-chart-web", () => {
const customColorContainer = await page.locator(".mx-name-containerCustomColor");
await expect(customColorContainer).toBeVisible({ timeout: 10000 });
await customColorContainer.scrollIntoViewIfNeeded();
await expect(customColorContainer.locator(".mx-react-plotly-chart")).toBeVisible({ timeout: 5000 });
await expect(customColorContainer.locator("g.colorbar")).toBeVisible({ timeout: 5000 });
await page.waitForTimeout(500);
await expect(customColorContainer).toHaveScreenshot(`heatmapChartCustomColor.png`, {
threshold: 0.5
});
Expand All @@ -27,6 +30,9 @@ test.describe("heatmap-chart-web", () => {
const ascendingContainer = await page.locator(".mx-name-containerAscending");
await expect(ascendingContainer).toBeVisible({ timeout: 10000 });
await ascendingContainer.scrollIntoViewIfNeeded();
await expect(ascendingContainer.locator(".mx-react-plotly-chart")).toBeVisible({ timeout: 5000 });
await expect(ascendingContainer.locator("g.colorbar")).toBeVisible({ timeout: 5000 });
await page.waitForTimeout(500);
await expect(ascendingContainer).toHaveScreenshot(`heatmapChartAscending.png`, {
threshold: 0.5
});
Expand All @@ -36,7 +42,11 @@ test.describe("heatmap-chart-web", () => {
page
}) => {
const descendingContainer = await page.locator(".mx-name-containerDescending");
await expect(descendingContainer).toBeVisible({ timeout: 10000 });
await descendingContainer.scrollIntoViewIfNeeded();
await expect(descendingContainer.locator(".mx-react-plotly-chart")).toBeVisible({ timeout: 5000 });
await expect(descendingContainer.locator("g.colorbar")).toBeVisible({ timeout: 5000 });
await page.waitForTimeout(500);
await expect(descendingContainer).toHaveScreenshot(`heatmapChartDescending.png`, {
threshold: 0.5
});
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading