From ca0e91363e39f45ec2bc6d8b7833233fe5afb6a3 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Mon, 9 Oct 2023 15:17:55 -0700 Subject: [PATCH] web: ensure the applications wizard tests finish after current changes --- .../pageobjects/applications-list.page.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/wdio/test/pageobjects/applications-list.page.ts diff --git a/tests/wdio/test/pageobjects/applications-list.page.ts b/tests/wdio/test/pageobjects/applications-list.page.ts new file mode 100644 index 000000000..0f3d93e03 --- /dev/null +++ b/tests/wdio/test/pageobjects/applications-list.page.ts @@ -0,0 +1,21 @@ +import AdminPage from "./admin.page.js"; +import { $ } from "@wdio/globals"; + +/** + * sub page containing specific selectors and methods for a specific page + */ +class ApplicationsListPage extends AdminPage { + /** + * define selectors using getter methods + */ + + get startWizardButton() { + return $('>>>ak-wizard-frame button[slot="trigger"]'); + } + + async open() { + return await super.open("if/admin/#/core/applications"); + } +} + +export default new ApplicationsListPage();