Skip to content

Commit 36fd2fe

Browse files
committed
NASAEARTH-17 fix playwright test
1 parent 7178a84 commit 36fd2fe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

playwright/in-codap.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ test("App inside of CODAP", async ({ baseURL, page }) => {
2929

3030
await iframe.getByRole("button", { name: "Get Data" }).click();
3131

32-
// Make sure the table has something from our data in it
32+
// Make sure the table is visible and has something from our data in it
33+
await expect(page.getByTestId("collection-table-grid").nth(1)).toBeVisible();
3334
await expect(page.getByTestId("collection-table-grid").nth(1), "Table should contain date")
34-
.toContainText("1/1/2001", { timeout: 30000 });
35+
.toContainText("1/1", { timeout: 30000 });
3536

3637
// Make sure there is a slider with the correct value
3738
await expect(page.getByTestId("slider-variable-name-text")).toContainText("Date");
38-
await expect(page.getByTestId("slider-variable-value-text-input")).toHaveValue("1/2001");
39+
await expect(page.getByTestId("slider-variable-value-text-input")).toHaveValue("1/2024");
3940

4041
// Move the slider and make sure the map date changes
4142
const sliderThumb = page.getByTestId("slider-thumb-icon");
@@ -48,7 +49,7 @@ test("App inside of CODAP", async ({ baseURL, page }) => {
4849

4950
const mapTile = page.getByTestId("codap-map");
5051
const mapTitle = mapTile.getByTestId("component-title-bar");
51-
await expect(mapTitle).toContainText("2001-02-01");
52+
await expect(mapTitle).toContainText("2024-04-01");
5253

5354
const iframeUrl = await iframe.owner().getAttribute("src");
5455
// eslint-disable-next-line playwright/no-conditional-in-test

0 commit comments

Comments
 (0)