external-services-automation 1.0.22 → 1.0.24
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.
|
@@ -5,9 +5,9 @@ const test_1 = require("@playwright/test");
|
|
|
5
5
|
class ConfirmCodePage {
|
|
6
6
|
constructor(page) {
|
|
7
7
|
this.page = page;
|
|
8
|
-
this.pageTitle = page.
|
|
8
|
+
this.pageTitle = page.getByRole('heading', { name: 'Almost there — check your inbox' });
|
|
9
9
|
this.codeInput = page.locator('input[name="p_confirmation_code"]');
|
|
10
|
-
this.continueButton = page.
|
|
10
|
+
this.continueButton = page.getByRole('button', { name: 'Continue' });
|
|
11
11
|
}
|
|
12
12
|
async enterConfirmationCode(code) {
|
|
13
13
|
await this.codeInput.fill(code);
|
|
@@ -9,6 +9,6 @@ export declare class KindeAuthService {
|
|
|
9
9
|
private confirmCodePage;
|
|
10
10
|
private passwordSetupPage;
|
|
11
11
|
constructor(page: Page);
|
|
12
|
-
createAccountWithEmailVerification(): Promise<GuerrillaMailClient>;
|
|
12
|
+
createAccountWithEmailVerification(referralCode?: string): Promise<GuerrillaMailClient>;
|
|
13
13
|
deleteTemporaryEmail(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -13,8 +13,8 @@ class KindeAuthService {
|
|
|
13
13
|
this.confirmCodePage = new ConfirmCodePage_1.ConfirmCodePage(page);
|
|
14
14
|
this.passwordSetupPage = new PasswordSetupPage_1.PasswordSetupPage(page);
|
|
15
15
|
}
|
|
16
|
-
async createAccountWithEmailVerification() {
|
|
17
|
-
await this.loginPage.
|
|
16
|
+
async createAccountWithEmailVerification(referralCode) {
|
|
17
|
+
await this.loginPage.page.goto(referralCode || '/');
|
|
18
18
|
await this.loginPage.goToRegisterPage();
|
|
19
19
|
await this.registerPage.isOnRegisterPage();
|
|
20
20
|
this.emailClient = temp_email_utils_1.GuerrillaMailClient.createIsolatedClient();
|