Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 26, 2024
1 parent 33b2c08 commit c57b9dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const Accept = Template.bind({});
Accept.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
allowInsecure: true,
style: "contrast",
classes: "tna-cookie-banner--demo",
Expand Down Expand Up @@ -108,13 +107,14 @@ Accept.play = async ({ canvasElement }) => {
// await userEvent.click(closeButton);

// await expect(closeButton).not.toBeVisible();

await cookies.deleteAll();
};

export const Reject = Template.bind({});
Reject.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
style: "contrast",
classes: "tna-cookie-banner--demo",
};
Expand Down Expand Up @@ -152,7 +152,6 @@ export const CustomPolicies = Template.bind({});
CustomPolicies.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
policies: "custom",
style: "contrast",
classes: "tna-cookie-banner--demo",
Expand Down Expand Up @@ -189,7 +188,6 @@ export const Existing = Template.bind({});
Existing.args = {
serviceName: "My service",
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
allowInsecure: true,
style: "contrast",
classes: "tna-cookie-banner--demo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Card from "../../../components/card/template.njk";
import Checkboxes from "../../../components/checkboxes/template.njk";
import FeaturedRecords from "../../../components/featured-records/template.njk";
import Footer from "../../../components/footer/template.njk";
import CookieBanner from "../../../components/cookie-banner/template.njk";
import Gallery from "../../../components/gallery/template.njk";
import Header from "../../../components/header/template.njk";
import Hero from "../../../components/hero/template.njk";
Expand Down Expand Up @@ -92,14 +91,6 @@ const Template = ({ theme, accent }) => {
: ""
}">
<div class="tna-template__body tna-template__body--padded">
<!--
${CookieBanner({
params: {
cookiesUrl: "#",
cookiesPath: "/tna-frontend/",
},
})}
-->
${SkipLink({
params: {
href: "main-content",
Expand Down

0 comments on commit c57b9dd

Please sign in to comment.