-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1404 from weather-gov/mgwalker/1316-empty-nights
Filter out empty day periods
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { test, expect } = require("@playwright/test"); | ||
|
||
const { describe, beforeEach } = test; | ||
|
||
describe("daily forecast", () => { | ||
beforeEach(async ({ page }) => { | ||
await page.goto("http://localhost:8081/play/testing"); | ||
}); | ||
|
||
test("does not display missing day periods", async ({ page }) => { | ||
await page.goto("/point/21.305/-157.858"); | ||
const lastDay = page.locator(".wx-daily-forecast-block li").last(); | ||
|
||
const periods = lastDay.locator(".wx-daily-forecast-summary-area"); | ||
|
||
await expect(periods).toHaveCount(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters