Skip to content

Commit edcdbe4

Browse files
committed
fix: test 2e2 home-page
1 parent 1f9d6d4 commit edcdbe4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cypress/utils/navigate.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const goHome = () => {
1818
.invoke("attr", "content")
1919
.should("match", /\d+ aides/i)
2020

21-
cy.get('[data-testid="home-hero-content"]')
22-
.invoke("text")
23-
.should("contain", "aides")
21+
cy.get('[data-testid="home-page"]').invoke("text").should("contain", "aides")
2422

2523
cy.get('[data-testid="new-simulation"]').click()
2624
}

src/views/home.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="fr-container">
2+
<div data-testid="home-page" class="fr-container">
33
<div class="fr-grid-row fr-grid-row--gutters fr-grid-row--middle">
44
<div class="fr-col-12 fr-col-md-6 fr-mt-2w">
55
<h1 class="fr-h3 fr-mb-3w">

0 commit comments

Comments
 (0)