Skip to content

Commit

Permalink
Merge pull request #1464 from weather-gov/eg-1424-touchpoints-footer-…
Browse files Browse the repository at this point in the history
…padding

Fix touchpoints button padding
  • Loading branch information
eric-gade committed Jul 26, 2024
2 parents 0644a7e + ebdfcfa commit 02c3f48
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ ee: end-to-end-test
end-to-end-test: ## Run end-to-end tests in Cypress. (alias ee)
npx cypress run --project tests/e2e

eep: end-to-end-playwright
end-to-end-playwright: ## Run Playwright version of e2e tests
npx playwright test e2e/*

lt: load-time-test
load-time-test: ## Run page load time tests in Cypress (alias lt)
npx cypress run --project tests/load-times
Expand Down
23 changes: 23 additions & 0 deletions tests/playwright/e2e/touchpoints.spec.js
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();
});
});
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if page.footer %}
<footer role="contentinfo" class="margin-top-0">
<footer role="contentinfo" class="margin-top-0 padding-bottom-3">
<div class="usa-identifier">
<nav class="usa-identifier__section usa-identifier__section--required-links" aria-label="Important links,">
<div class="grid-container">
Expand Down

0 comments on commit 02c3f48

Please sign in to comment.