storj/testsuite/playwright-ui/pageFactory/objectRepository/SignupPageObjects.ts
Antonio Franco (He/Him) 3613bfe1af
testsuite/playwright: copys files to storj repo (#5648)
* 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.
2023-03-09 11:59:45 -05:00

27 lines
1.4 KiB
TypeScript

// Copyright (C) 2023 Storj Labs, Inc.
// See LICENSE for copying information.
export class SignupPageObjects {
// SIGNUP
protected static INPUT_NAME_XPATH = `//input[@id='Full Name']`;
protected static INPUT_EMAIL_XPATH = `//input[@id='Email Address']`;
protected static INPUT_PASSWORD_XPATH = `//input[@id='Password']`;
protected static INPUT_RETYPE_PASSWORD_XPATH = `//input[@id='Retype Password']`;
protected static TOS_CHECKMARK_BUTTON_XPATH = `.checkmark-container`;
// SIGNUP SUCCESS PAGE
protected static SIGNUP_SUCCESS_MESSAGE_XPATH = `//h2[contains(text(),"You\'re almost there!")]`;
protected static GOTO_LOGIN_PAGE_BUTTON_XPATH = `//a[contains(text(),'Go to Login page')]`;
// IX BRANDED SIGNUP
protected static CREATE_ACCOUNT_BUTTON_XPATH = '//span[contains(text(),\'Create an iX-Storj Account\')]';
protected static IX_BRANDED_HEADER_TEXT_XPATH = '//h1[contains(text(),\'Globally Distributed Storage for TrueNAS\')]';
protected static IX_BRANDED_SUBHEADER_TEXT_XPATH = '//p[contains(text(),\'iX and Storj have partnered to offer a secure, hig\')]';
// BUSINESS TAB
protected static IX_BRANDED_BUSINESS_BUTTON_XPATH = `//li[contains(text(),'Business')]`;
protected static COMPANY_NAME_INPUT_XPATH = `//input[@id='Company Name']`;
protected static POSITION_INPUT_XPATH = `//input[@id='Position']`;
}