From 3dce8a4133a7d9b937183f26c88e5249d4cd6cf5 Mon Sep 17 00:00:00 2001 From: Michael Rogers Date: Mon, 10 Jul 2023 15:32:45 -0500 Subject: [PATCH] Add role selection step to beforeEach --- .../plugins/operatorStatus/operatorStatus.e2e.spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js b/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js index b40dc2a67a..1fa5437bd8 100644 --- a/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js +++ b/e2e/tests/functional/plugins/operatorStatus/operatorStatus.e2e.spec.js @@ -47,6 +47,11 @@ test.describe('Operator Status', () => { path: path.join(__dirname, '../../../../helper/', 'addInitOperatorStatus.js') }); await page.goto('./', { waitUntil: 'domcontentloaded' }); + await expect(page.getByText('Select Role')).toBeVisible(); + // set role + await page.getByRole('button', { name: 'Select' }).click(); + // dismiss role confirmation popup + await page.getByRole('button', { name: 'Dismiss' }).click(); }); // verify that operator status is visible