From 4a215be34c42b4f0893933b820998f1e510970d7 Mon Sep 17 00:00:00 2001 From: Aaron Goff <38787594+aaron-goff@users.noreply.github.com> Date: Tue, 15 Feb 2022 13:53:34 -0500 Subject: [PATCH] Change testcafe test --- .gitignore | 1 + testcafe/tests/HomeTest.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7125db4..88aa002 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules package-lock.json +# Cypress cypress/fixtures cypress/videos cypress/screenshots diff --git a/testcafe/tests/HomeTest.js b/testcafe/tests/HomeTest.js index 6d8c110..1ba6d00 100644 --- a/testcafe/tests/HomeTest.js +++ b/testcafe/tests/HomeTest.js @@ -9,11 +9,11 @@ test("Correct title displays", async (t) => { }); test("Attempts counter increments after selecting a photo", async (t) => { - const initialAttemptsCount = Number(await page.attempts.textContent); + const initialAttemptsCount = Number(await page.attempt.textContent); await t.click(page.photo); const finalAttemptsCount = Number(await page.attempts.textContent); - await t.expect(finalAttemptsCount).eql(initialAttemptsCount + 1); + await t.expect(finalAttemptsCount).eql(initialAttemptsCount); });