Skip to content

Commit ac0bdd5

Browse files
committed
Add timeout to angular10, add esModuleInterop
1 parent 13d730b commit ac0bdd5

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

samples/msal-angular-v2-samples/angular10-sample-app/test/home.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ describe('/ (Home Page)', () => {
6464
// Initiate Login
6565
const [signInButton] = await page.$x("//button[contains(., 'Login')]");
6666
await signInButton.click();
67+
await page.waitForTimeout(50);
6768
await screenshot.takeScreenshot(page, "Login button clicked");
6869
const [loginRedirectButton] = await page.$x("//div//button[contains(., 'Login using Redirect')]");
6970
await loginRedirectButton.click();
@@ -101,6 +102,7 @@ describe('/ (Home Page)', () => {
101102
// Initiate Login
102103
const [signInButton] = await page.$x("//button[contains(., 'Login')]");
103104
await signInButton.click();
105+
await page.waitForTimeout(50);
104106
await screenshot.takeScreenshot(page, "Login button clicked");
105107
const [loginPopupButton] = await page.$x("//button[contains(., 'Login using Popup')]");
106108
const newPopupWindowPromise = new Promise<puppeteer.Page>(resolve => page.once("popup", resolve));

samples/msal-angular-v2-samples/angular10-sample-app/tsconfig.base.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"experimentalDecorators": true,
1111
"moduleResolution": "node",
1212
"importHelpers": true,
13+
"esModuleInterop": true,
1314
"target": "es2015",
1415
"module": "es2020",
1516
"lib": [

samples/msal-angular-v2-samples/angular9-v2-sample-app/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"experimentalDecorators": true,
1010
"module": "esnext",
1111
"moduleResolution": "node",
12+
"esModuleInterop": true,
1213
"importHelpers": true,
1314
"target": "es2015",
1415
"typeRoots": [

0 commit comments

Comments
 (0)