Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux committed Jan 28, 2025
1 parent a4b7169 commit dbf6d37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e_tests/accessibility.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test.describe("WCAG Compliance Tests", () => {

test("Assistant Homepage | Desktop", async ({ page }) => {
// TODO: Update the route for production
await page.goto(`${BASE_URL}/dechet`, { waitUntil: "networkidle" });
await page.goto(`${BASE_URL}/`, { waitUntil: "networkidle" });

const accessibilityScanResults = await new AxeBuilder({ page })
.exclude("[data-disable-axe]")
Expand Down
2 changes: 1 addition & 1 deletion jinja2/tests/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h3>LA CARTE</h3>
</script>
{% else %}
<h3>LE FORMULAIRE</h3>
<script src="http://localhost:8000/static/iframe.js"
<script src="http://localhost:8000/iframe.js"
data-max_width="100%"
data-height="720px"
data-direction="jai"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const script = document.currentScript as HTMLScriptElement
const slug = script?.dataset?.objet;
const origin = new URL(script?.getAttribute("src")).origin
// TODO: mise en prod, remplacer dechet ci-dessous par une string vide
const src = `${origin}/dechet/${slug || ''}?iframe`;
const src = `${origin}/${slug || 'dechet'}?iframe`;
const iframe = document.createElement("iframe");

const iframeAttributes = {
Expand Down

0 comments on commit dbf6d37

Please sign in to comment.