3613bfe1af
* testsuite/playwright: copys files to storj repo This PR copies all the playwright ui tests to the storj repository. * CI: Jenkinsfile.ui Jenkinsfile.ui builds all necessary items for running storj binaries, installs all items for playwright ui tests and executes the test. Note that we aren't running regular unit tests and we are not linting the code as this is occuring in the public instance. Furthermore, we still need to implement the starting of storj services as well as typescript linters for the playwright tests. * testsuite: playwright ui tests This PR copies all playwright ui tests files from the qa repo. * testsuite: playwright ui tests This PR copies all playwright ui tests files from the qa repo.
21 lines
507 B
TypeScript
21 lines
507 B
TypeScript
// Copyright (C) 2023 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import {NavigationMenuObject} from "@objects/NavigationMenuObject";
|
|
import type {Page} from '@playwright/test';
|
|
|
|
|
|
export class NavigationMenu extends NavigationMenuObject {
|
|
readonly page: Page;
|
|
|
|
constructor(page: Page) {
|
|
super();
|
|
this.page = page;
|
|
}
|
|
|
|
async clickOnBuckets(): Promise<void> {
|
|
await this.page.getByRole('link', {name: NavigationMenuObject.BUCKETS_XPATH}).click();
|
|
|
|
}
|
|
}
|