From 5dbc36908499e43fe95eca6e1d50db09b12abd95 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Wed, 20 Jul 2022 06:08:36 +0100 Subject: [PATCH] Update bring-it-to-life-dom_test.mjs Modification asked by Anthony for immediate update onsite (JPS) --- js/tests/bring-it-to-life-dom_test.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/tests/bring-it-to-life-dom_test.mjs b/js/tests/bring-it-to-life-dom_test.mjs index 1f119d141..dcf7c3952 100644 --- a/js/tests/bring-it-to-life-dom_test.mjs +++ b/js/tests/bring-it-to-life-dom_test.mjs @@ -11,15 +11,15 @@ tests.push(async ({ eq, page }) => { tests.push(async ({ eq, page }) => { // check the class of left eye before the JS is loaded - await page.setJavaScriptEnabled(false) - await page.reload() + // await page.setJavaScriptEnabled(false) + // await page.reload() await eq.$('p#eye-left', { className: 'eye' }) }) tests.push(async ({ eq, page }) => { // check the class of left eye has been updated after the JS is loaded - await page.setJavaScriptEnabled(true) - await page.reload() + // await page.setJavaScriptEnabled(true) + // await page.reload() await eq.$('p#eye-left', { className: 'eye eye-closed' })