Skip to content

Commit

Permalink
fix: test 2e2 home-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Oct 29, 2024
1 parent 1f9d6d4 commit edcdbe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cypress/utils/navigate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const goHome = () => {
.invoke("attr", "content")
.should("match", /\d+ aides/i)

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

cy.get('[data-testid="new-simulation"]').click()
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="fr-container">
<div data-testid="home-page" class="fr-container">
<div class="fr-grid-row fr-grid-row--gutters fr-grid-row--middle">
<div class="fr-col-12 fr-col-md-6 fr-mt-2w">
<h1 class="fr-h3 fr-mb-3w">
Expand Down

0 comments on commit edcdbe4

Please sign in to comment.