-
Notifications
You must be signed in to change notification settings - Fork 9
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 #1464 from weather-gov/eg-1424-touchpoints-footer-…
…padding Fix touchpoints button padding
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
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,23 @@ | ||
const { test, expect } = require("@playwright/test"); | ||
|
||
const { describe } = test; | ||
|
||
describe("Touchpoints button tests", () => { | ||
describe("Basic layout", () => { | ||
|
||
test("Touchpoints button is visible", async ({ page }) => { | ||
await page.goto("http://localhost:8080/"); | ||
const button = await page.locator("a.touchpoints-button"); | ||
|
||
await expect(button).toBeVisible(); | ||
}); | ||
|
||
test("Does not occlude any links in the footer", async ({ page }) => { | ||
await page.goto("http:localhost:8080/"); | ||
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight)); | ||
const footerLinks = await page.locator("footer a").last(); | ||
|
||
await expect(footerLinks).toBeVisible(); | ||
}); | ||
}); | ||
}); |
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