@axinom/mosaic-e2e-page-model 0.12.0 → 0.13.0-rc.1
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/dist/sign-in/sign-in-page.d.ts +2 -0
- package/dist/sign-in/sign-in-page.d.ts.map +1 -1
- package/dist/sign-in/sign-in-page.js +2 -0
- package/dist/sign-in/sign-in-page.js.map +1 -1
- package/dist/sign-in/sign-in-with-ax-auth-form.d.ts.map +1 -1
- package/dist/sign-in/sign-in-with-ax-auth-form.js +23 -11
- package/dist/sign-in/sign-in-with-ax-auth-form.js.map +1 -1
- package/package.json +3 -3
- package/src/sign-in/sign-in-page.ts +7 -0
- package/src/sign-in/sign-in-with-ax-auth-form.ts +31 -15
|
@@ -14,6 +14,8 @@ export declare class SignInPage {
|
|
|
14
14
|
readonly message: MessageBar;
|
|
15
15
|
/** A locator to the "Sign in with AxAuth" button. */
|
|
16
16
|
readonly axAuthButton: import("playwright-core").Locator;
|
|
17
|
+
readonly axAuthemailField: import("playwright-core").Locator;
|
|
18
|
+
readonly axAuthpasswordField: import("playwright-core").Locator;
|
|
17
19
|
/** A locator to the "Sign in with Google" button. */
|
|
18
20
|
readonly googleButton: import("playwright-core").Locator;
|
|
19
21
|
/** A locator to the "Sign in with Microsoft" button. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-page.d.ts","sourceRoot":"","sources":["../../src/sign-in/sign-in-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,4CAA4C;AAC5C,qBAAa,UAAU;IAEnB,kCA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AAC,YAAY,oCAEnB;IAEF,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,uBAAuC;IAE1D,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,uBAAuC;IAE1D,6CAA6C;IAC7C,QAAQ,CAAC,aAAa,0BAA0C;CACjE"}
|
|
@@ -15,6 +15,8 @@ class SignInPage {
|
|
|
15
15
|
this.message = new mosaic_e2e_ui_selectors_1.MessageBar(this.page, '//*[@data-test-id="message"]');
|
|
16
16
|
/** A locator to the "Sign in with AxAuth" button. */
|
|
17
17
|
this.axAuthButton = this.page.locator('//*[@data-test-id="login-with:AX_AUTH"]');
|
|
18
|
+
this.axAuthemailField = this.page.locator('//input[@data-test-id="login-username"]');
|
|
19
|
+
this.axAuthpasswordField = this.page.locator('//input[@data-test-id="login-password"]');
|
|
18
20
|
/** A locator to the "Sign in with Google" button. */
|
|
19
21
|
this.googleButton = this.page.locator('//*[@data-test-id="login-with:GOOGLE"]');
|
|
20
22
|
/** A locator to the "Sign in with Microsoft" button. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-page.js","sourceRoot":"","sources":["../../src/sign-in/sign-in-page.ts"],"names":[],"mappings":";;;AAAA,6EAA6D;AAE7D,2EAAmE;AACnE,yEAAkE;AAClE,+EAAwE;AAExE,4CAA4C;AAC5C,MAAa,UAAU;IACrB;IACE,kCAAkC;IAC1B,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAGpB,kFAAkF;QACzE,YAAO,GAAG,IAAI,oCAAU,CAAC,IAAI,CAAC,IAAI,EAAE,8BAA8B,CAAC,CAAC;QAE7E,qDAAqD;QAC5C,iBAAY,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CACvC,yCAAyC,CAC1C,CAAC;QAEF,qDAAqD;QAC5C,iBAAY,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CACvC,wCAAwC,CACzC,CAAC;QAEF,wDAAwD;QAC/C,oBAAe,GAAG,IAAI,CAAC,IAAI,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CACvC,wCAAwC,CACzC,CAAC;QAEF,0CAA0C;QACjC,eAAU,GAAG,IAAI,gDAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1D,0CAA0C;QACjC,eAAU,GAAG,IAAI,+CAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1D,6CAA6C;QACpC,kBAAa,GAAG,IAAI,qDAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAvC7D,CAAC;CAwCL;AA5CD,gCA4CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-with-ax-auth-form.d.ts","sourceRoot":"","sources":["../../src/sign-in/sign-in-with-ax-auth-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,0CAA0C;AAC1C,qBAAa,oBAAqB,SAAQ,cAAc;gBAC1C,IAAI,EAAE,IAAI;IAKtB,kEAAkE;IAClE,QAAQ,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"sign-in-with-ax-auth-form.d.ts","sourceRoot":"","sources":["../../src/sign-in/sign-in-with-ax-auth-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,0CAA0C;AAC1C,qBAAa,oBAAqB,SAAQ,cAAc;gBAC1C,IAAI,EAAE,IAAI;IAKtB,kEAAkE;IAClE,QAAQ,CAAC,YAAY,oCAEnB;IAEF;;;;;;;;;;OAUG;IACG,YAAY,CAAC,WAAW,EAAE;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,IAAI,CAAC;CA4ClB"}
|
|
@@ -6,9 +6,9 @@ const mosaic_e2e_ui_selectors_1 = require("@axinom/mosaic-e2e-ui-selectors");
|
|
|
6
6
|
class SignInWithAxAuthForm extends mosaic_e2e_ui_selectors_1.ComponentModel {
|
|
7
7
|
constructor(page) {
|
|
8
8
|
// Base xpath for all selectors on this page.
|
|
9
|
-
super(page, '
|
|
9
|
+
super(page, '//div[@id="signIn"]');
|
|
10
10
|
/** A locator to a message displayed on authentication failure. */
|
|
11
|
-
this.errorMessage = this.getLocator('//*[@data-test-id="error"]');
|
|
11
|
+
this.errorMessage = this.getLocator('//*[@data-test-id="login-error-message"]');
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* This method signs in with axauth credentials.
|
|
@@ -22,24 +22,36 @@ class SignInWithAxAuthForm extends mosaic_e2e_ui_selectors_1.ComponentModel {
|
|
|
22
22
|
* - Wait for the form to be detached
|
|
23
23
|
*/
|
|
24
24
|
async authenticate(credentials) {
|
|
25
|
-
const emailField = this.getLocator('//input[@data-test-id="
|
|
26
|
-
const passwordField = this.getLocator('//input[@data-test-id="password
|
|
27
|
-
const signInButton = this.getLocator('
|
|
28
|
-
const
|
|
29
|
-
const
|
|
25
|
+
const emailField = this.getLocator('//input[@data-test-id="login-username"]');
|
|
26
|
+
const passwordField = this.getLocator('//input[@data-test-id="login-password"]');
|
|
27
|
+
const signInButton = this.getLocator('//button[@data-test-id="signin-button"]');
|
|
28
|
+
const title = this.getLocator('//*[@data-test-id="landing-page-title"]');
|
|
29
|
+
// const agreeAndContinueButton = this.getLocator(
|
|
30
|
+
// '//*[@data-test-id="agree-button"]',
|
|
31
|
+
// );
|
|
32
|
+
// const errorOrAgreeAndContinueButton = this.getLocator(
|
|
33
|
+
// '//*[@data-test-id="error" or @data-test-id="agree-button"]',
|
|
34
|
+
// );
|
|
30
35
|
// enter email and password
|
|
31
36
|
await emailField.waitFor({ state: 'visible' });
|
|
32
37
|
await emailField.fill(credentials.email);
|
|
33
38
|
await passwordField.fill(credentials.password);
|
|
34
39
|
await signInButton.click();
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
//this try-catch statement is flaky and will be improved
|
|
41
|
+
try {
|
|
42
|
+
await signInButton.waitFor({ state: 'hidden' });
|
|
43
|
+
}
|
|
44
|
+
catch (e) {
|
|
37
45
|
throw new Error(await this.errorMessage.innerText());
|
|
38
46
|
}
|
|
47
|
+
// await errorOrAgreeAndContinueButton.waitFor({ state: 'visible' });
|
|
48
|
+
// if (await this.errorMessage.isVisible()) {
|
|
49
|
+
// throw new Error(await this.errorMessage.innerText());
|
|
50
|
+
// }
|
|
39
51
|
// agree with terms
|
|
40
|
-
await agreeAndContinueButton.click();
|
|
52
|
+
// await agreeAndContinueButton.click();
|
|
41
53
|
// wait for login to complete
|
|
42
|
-
await agreeAndContinueButton.waitFor({ state: 'detached' });
|
|
54
|
+
// await agreeAndContinueButton.waitFor({ state: 'detached' });
|
|
43
55
|
}
|
|
44
56
|
}
|
|
45
57
|
exports.SignInWithAxAuthForm = SignInWithAxAuthForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-with-ax-auth-form.js","sourceRoot":"","sources":["../../src/sign-in/sign-in-with-ax-auth-form.ts"],"names":[],"mappings":";;;AAAA,6EAAiE;AAGjE,0CAA0C;AAC1C,MAAa,oBAAqB,SAAQ,wCAAc;IACtD,YAAY,IAAU;QACpB,6CAA6C;QAC7C,KAAK,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"sign-in-with-ax-auth-form.js","sourceRoot":"","sources":["../../src/sign-in/sign-in-with-ax-auth-form.ts"],"names":[],"mappings":";;;AAAA,6EAAiE;AAGjE,0CAA0C;AAC1C,MAAa,oBAAqB,SAAQ,wCAAc;IACtD,YAAY,IAAU;QACpB,6CAA6C;QAC7C,KAAK,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;QAGrC,kEAAkE;QACzD,iBAAY,GAAG,IAAI,CAAC,UAAU,CACrC,0CAA0C,CAC3C,CAAC;IALF,CAAC;IAOD;;;;;;;;;;OAUG;IACH,KAAK,CAAC,YAAY,CAAC,WAGlB;QACC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,yCAAyC,CAC1C,CAAC;QACF,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CACnC,yCAAyC,CAC1C,CAAC;QACF,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAClC,yCAAyC,CAC1C,CAAC;QAEF,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,yCAAyC,CAAC,CAAC;QAEzE,kDAAkD;QAClD,yCAAyC;QACzC,KAAK;QAEL,yDAAyD;QACzD,kEAAkE;QAClE,KAAK;QAEL,2BAA2B;QAC3B,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC/C,MAAM,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACzC,MAAM,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/C,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;QAC3B,wDAAwD;QACxD,IAAI;YACF,MAAM,YAAY,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;SACjD;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC;SACtD;QAED,qEAAqE;QACrE,6CAA6C;QAC7C,0DAA0D;QAC1D,IAAI;QAEJ,mBAAmB;QACnB,wCAAwC;QAExC,6BAA6B;QAC7B,+DAA+D;IACjE,CAAC;CACF;AArED,oDAqEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-e2e-page-model",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-rc.1",
|
|
4
4
|
"description": "A page model for testing an Axinom Mosaic Management System with Playwright.",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dev": "tsc -w"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@axinom/mosaic-e2e-ui-selectors": "^0.
|
|
25
|
+
"@axinom/mosaic-e2e-ui-selectors": "^0.12.0-rc.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^18.11.18",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "db286e61ba14b9bbc66f3b11606d2501eadb32fe"
|
|
39
39
|
}
|
|
@@ -19,6 +19,13 @@ export class SignInPage {
|
|
|
19
19
|
'//*[@data-test-id="login-with:AX_AUTH"]',
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
+
readonly axAuthemailField = this.page.locator(
|
|
23
|
+
'//input[@data-test-id="login-username"]',
|
|
24
|
+
);
|
|
25
|
+
readonly axAuthpasswordField = this.page.locator(
|
|
26
|
+
'//input[@data-test-id="login-password"]',
|
|
27
|
+
);
|
|
28
|
+
|
|
22
29
|
/** A locator to the "Sign in with Google" button. */
|
|
23
30
|
readonly googleButton = this.page.locator(
|
|
24
31
|
'//*[@data-test-id="login-with:GOOGLE"]',
|
|
@@ -5,11 +5,13 @@ import { Page } from 'playwright-core';
|
|
|
5
5
|
export class SignInWithAxAuthForm extends ComponentModel {
|
|
6
6
|
constructor(page: Page) {
|
|
7
7
|
// Base xpath for all selectors on this page.
|
|
8
|
-
super(page, '
|
|
8
|
+
super(page, '//div[@id="signIn"]');
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/** A locator to a message displayed on authentication failure. */
|
|
12
|
-
readonly errorMessage = this.getLocator(
|
|
12
|
+
readonly errorMessage = this.getLocator(
|
|
13
|
+
'//*[@data-test-id="login-error-message"]',
|
|
14
|
+
);
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* This method signs in with axauth credentials.
|
|
@@ -26,33 +28,47 @@ export class SignInWithAxAuthForm extends ComponentModel {
|
|
|
26
28
|
email: string;
|
|
27
29
|
password: string;
|
|
28
30
|
}): Promise<void> {
|
|
29
|
-
const emailField = this.getLocator(
|
|
30
|
-
|
|
31
|
-
'//input[@data-test-id="password-input"]',
|
|
31
|
+
const emailField = this.getLocator(
|
|
32
|
+
'//input[@data-test-id="login-username"]',
|
|
32
33
|
);
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
'//*[@data-test-id="agree-button"]',
|
|
34
|
+
const passwordField = this.getLocator(
|
|
35
|
+
'//input[@data-test-id="login-password"]',
|
|
36
36
|
);
|
|
37
|
-
const
|
|
38
|
-
'
|
|
37
|
+
const signInButton = this.getLocator(
|
|
38
|
+
'//button[@data-test-id="signin-button"]',
|
|
39
39
|
);
|
|
40
40
|
|
|
41
|
+
const title = this.getLocator('//*[@data-test-id="landing-page-title"]');
|
|
42
|
+
|
|
43
|
+
// const agreeAndContinueButton = this.getLocator(
|
|
44
|
+
// '//*[@data-test-id="agree-button"]',
|
|
45
|
+
// );
|
|
46
|
+
|
|
47
|
+
// const errorOrAgreeAndContinueButton = this.getLocator(
|
|
48
|
+
// '//*[@data-test-id="error" or @data-test-id="agree-button"]',
|
|
49
|
+
// );
|
|
50
|
+
|
|
41
51
|
// enter email and password
|
|
42
52
|
await emailField.waitFor({ state: 'visible' });
|
|
43
53
|
await emailField.fill(credentials.email);
|
|
44
54
|
await passwordField.fill(credentials.password);
|
|
45
55
|
await signInButton.click();
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
//this try-catch statement is flaky and will be improved
|
|
57
|
+
try {
|
|
58
|
+
await signInButton.waitFor({ state: 'hidden' });
|
|
59
|
+
} catch (e) {
|
|
49
60
|
throw new Error(await this.errorMessage.innerText());
|
|
50
61
|
}
|
|
51
62
|
|
|
63
|
+
// await errorOrAgreeAndContinueButton.waitFor({ state: 'visible' });
|
|
64
|
+
// if (await this.errorMessage.isVisible()) {
|
|
65
|
+
// throw new Error(await this.errorMessage.innerText());
|
|
66
|
+
// }
|
|
67
|
+
|
|
52
68
|
// agree with terms
|
|
53
|
-
await agreeAndContinueButton.click();
|
|
69
|
+
// await agreeAndContinueButton.click();
|
|
54
70
|
|
|
55
71
|
// wait for login to complete
|
|
56
|
-
await agreeAndContinueButton.waitFor({ state: 'detached' });
|
|
72
|
+
// await agreeAndContinueButton.waitFor({ state: 'detached' });
|
|
57
73
|
}
|
|
58
74
|
}
|