From 1ee30f47e2fe463874a8fd8c051f5452c54c5e69 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 17 Nov 2022 10:48:31 +0530 Subject: [PATCH] test(playwright): reload page to handle route navigation error - TypeError: Cannot read properties of null (reading 'parentNode') Signed-off-by: Pranav C --- tests/playwright/tests/accountUserSettings.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/playwright/tests/accountUserSettings.spec.ts b/tests/playwright/tests/accountUserSettings.spec.ts index ef9b8c7473..1195aadb02 100644 --- a/tests/playwright/tests/accountUserSettings.spec.ts +++ b/tests/playwright/tests/accountUserSettings.spec.ts @@ -21,6 +21,9 @@ test.describe('App settings', () => { await accountSettingsPage.goto(); + // todo: remove after route navigation issue resolved + await accountSettingsPage.rootPage.reload({ waitUntil: 'networkidle' }); + // enable invite only signup if (!(await accountSettingsPage.getInviteOnlyCheckboxValue())) { await accountSettingsPage.toggleInviteOnlyCheckbox();