File tree 5 files changed +6
-4
lines changed
angular10-sample-app/src/app
angular11-sample-app/src/app
5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- import puppeteer from "puppeteer" ;
1
+ import * as puppeteer from "puppeteer" ;
2
2
3
3
import { LabConfig } from "./LabConfig" ;
4
4
import { Configuration } from "../../lib/msal-browser" ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export function MSALInstanceFactory(): IPublicClientApplication {
27
27
auth : {
28
28
// clientId: '6226576d-37e9-49eb-b201-ec1eeb0029b6', // Prod enviroment. Uncomment to use.
29
29
clientId : '3fba556e-5d4a-48e3-8e1a-fd57c12cb82e' , // PPE testing environment
30
- // authority: " https://login.windows-ppe.net /common" , // Prod environment. Uncomment to use.
30
+ // authority: ' https://login.microsoftonline.com /common' , // Prod environment. Uncomment to use.
31
31
authority : 'https://login.windows-ppe.net/common' , // PPE testing environment.
32
32
redirectUri : '/' ,
33
33
postLogoutRedirectUri : '/'
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export function MSALInstanceFactory(): IPublicClientApplication {
28
28
auth : {
29
29
// clientId: '6226576d-37e9-49eb-b201-ec1eeb0029b6', // Prod enviroment. Uncomment to use.
30
30
clientId : '3fba556e-5d4a-48e3-8e1a-fd57c12cb82e' , // PPE testing environment
31
- // authority: " https://login.windows-ppe.net /common" , // Prod environment. Uncomment to use.
31
+ // authority: ' https://login.microsoftonline.com /common' , // Prod environment. Uncomment to use.
32
32
authority : 'https://login.windows-ppe.net/common' , // PPE testing environment.
33
33
redirectUri : '/' ,
34
34
postLogoutRedirectUri : '/'
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export function MSALInstanceFactory(): IPublicClientApplication {
28
28
auth : {
29
29
// clientId: '6226576d-37e9-49eb-b201-ec1eeb0029b6', // Prod enviroment. Uncomment to use.
30
30
clientId : '3fba556e-5d4a-48e3-8e1a-fd57c12cb82e' , // PPE testing environment
31
- // authority: " https://login.windows-ppe.net /common" , // Prod environment. Uncomment to use.
31
+ // authority: ' https://login.microsoftonline.com /common' , // Prod environment. Uncomment to use.
32
32
authority : 'https://login.windows-ppe.net/common' , // PPE testing environment.
33
33
redirectUri : '/' ,
34
34
postLogoutRedirectUri : '/'
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ describe('/ (Home Page)', () => {
64
64
// Initiate Login
65
65
const [ signInButton ] = await page . $x ( "//button[contains(., 'Login')]" ) ;
66
66
await signInButton . click ( ) ;
67
+ await page . waitForTimeout ( 50 ) ;
67
68
await screenshot . takeScreenshot ( page , "Login button clicked" ) ;
68
69
const [ loginRedirectButton ] = await page . $x ( "//button[contains(., 'Login using Redirect')]" ) ;
69
70
await loginRedirectButton . click ( ) ;
@@ -101,6 +102,7 @@ describe('/ (Home Page)', () => {
101
102
// Initiate Login
102
103
const [ signInButton ] = await page . $x ( "//button[contains(., 'Login')]" ) ;
103
104
await signInButton . click ( ) ;
105
+ await page . waitForTimeout ( 50 ) ;
104
106
await screenshot . takeScreenshot ( page , "Login button clicked" ) ;
105
107
const [ loginPopupButton ] = await page . $x ( "//button[contains(., 'Login using Popup')]" ) ;
106
108
const newPopupWindowPromise = new Promise < puppeteer . Page > ( resolve => page . once ( "popup" , resolve ) ) ;
You can’t perform that action at this time.
0 commit comments