37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
|
// Copyright (C) 2023 Storj Labs, Inc.
|
||
|
// See LICENSE for copying information.
|
||
|
|
||
|
import {test as baseTest} from '@playwright/test';
|
||
|
import {LoginPage} from '@pages/LoginPage';
|
||
|
import {DashboardPage} from '@pages/DashboardPage';
|
||
|
import {NavigationMenu} from '@pages/NavigationMenu';
|
||
|
import {BucketsPage} from '@pages/BucketsPage';
|
||
|
import {SignupPage} from "@pages/SignupPage";
|
||
|
|
||
|
const test = baseTest.extend<{
|
||
|
loginPage: LoginPage;
|
||
|
dashboardPage: DashboardPage;
|
||
|
navigationMenu: NavigationMenu;
|
||
|
bucketsPage: BucketsPage;
|
||
|
signupPage: SignupPage;
|
||
|
|
||
|
}>({
|
||
|
loginPage: async ({page}, use) => {
|
||
|
await use(new LoginPage(page));
|
||
|
},
|
||
|
dashboardPage: async ({page}, use) => {
|
||
|
await use(new DashboardPage(page));
|
||
|
},
|
||
|
navigationMenu: async ({page}, use) => {
|
||
|
await use(new NavigationMenu(page));
|
||
|
},
|
||
|
bucketsPage: async ({page}, use) => {
|
||
|
await use(new BucketsPage(page));
|
||
|
},
|
||
|
signupPage: async ({page}, use) => {
|
||
|
await use(new SignupPage(page));
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export default test;
|