diff --git a/webapp/e2e/steps/statistics.steps.js b/webapp/e2e/steps/statistics.steps.js index 531305c..c2e3e8f 100644 --- a/webapp/e2e/steps/statistics.steps.js +++ b/webapp/e2e/steps/statistics.steps.js @@ -47,7 +47,8 @@ defineFeature(feature, test => { }); then('The app shows the statistics page', async () => { - await expect(page).toMatchElement("#statsHeader", { text: "Statistics page" }); + await expect(page).toMatchElement(".h1-statistics", { text: "test4" }); + await expect(page).toMatchElement(".h2-statistics", { text: "test4@gmail.com" }); }); })