@bigbinary/neeto-playwright-commons 1.11.4 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +3 -2
- package/index.cjs.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2049,6 +2049,7 @@ interface CreateOrganizationProps extends BasicUserInfo {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
interface LoginAndOnboardParams extends BasicUserInfo {
|
|
2051
2051
|
handleOnboarding: () => Promise<void>;
|
|
2052
|
+
baseURL?: string;
|
|
2052
2053
|
}
|
|
2053
2054
|
interface Credentials extends BasicUserInfo {
|
|
2054
2055
|
otp?: number;
|
|
@@ -2201,7 +2202,8 @@ declare class OrganizationPage {
|
|
|
2201
2202
|
firstName,
|
|
2202
2203
|
lastName,
|
|
2203
2204
|
country,
|
|
2204
|
-
handleOnboarding
|
|
2205
|
+
handleOnboarding,
|
|
2206
|
+
baseURL
|
|
2205
2207
|
}: LoginAndOnboardParams) => Promise<void>;
|
|
2206
2208
|
/**
|
|
2207
2209
|
*
|
package/index.js
CHANGED
|
@@ -3550,6 +3550,7 @@ class CustomCommands {
|
|
|
3550
3550
|
await expect(this.page.getByTestId(selectMenu)).toBeVisible({
|
|
3551
3551
|
timeout: options.visibilityTimeout,
|
|
3552
3552
|
});
|
|
3553
|
+
await this.page.keyboard.type(value);
|
|
3553
3554
|
await this.page
|
|
3554
3555
|
.getByTestId(selectMenu)
|
|
3555
3556
|
.getByText(value, { exact: true })
|
|
@@ -14708,8 +14709,8 @@ class OrganizationPage {
|
|
|
14708
14709
|
await submitProfile;
|
|
14709
14710
|
await expect(this.page.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden();
|
|
14710
14711
|
};
|
|
14711
|
-
this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, }) => {
|
|
14712
|
-
await this.page.goto(ROUTES.admin);
|
|
14712
|
+
this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, baseURL = process.env.BASE_URL, }) => {
|
|
14713
|
+
await this.page.goto(`${baseURL}/${ROUTES.admin}`);
|
|
14713
14714
|
await this.loginViaSSO(email);
|
|
14714
14715
|
await this.setupProfile({ firstName, lastName, country });
|
|
14715
14716
|
await this.page.waitForURL(new RegExp(getGlobalUserState().domain), {
|