Fixed thinking we are on login screen when really loading dashboard
This commit is contained in:
@ -42,10 +42,15 @@ export async function pullData(amount = 100) {
|
||||
state.push('Navigating to United FCU');
|
||||
await page.goto('https://online.unitedfcu.com/unitedfederalcredituniononline/uux.aspx#/login');
|
||||
state.push(`Current URL: ${page.url()}`);
|
||||
await new Promise((resolve) => setTimeout(resolve, 5000));
|
||||
|
||||
if (page.url().includes('interstitial')) {
|
||||
await page.waitForLoadState();
|
||||
}
|
||||
while (page.url().includes('interstitial')) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
await page.waitForLoadState();
|
||||
}
|
||||
|
||||
if (!page.url().includes('dashboard')) {
|
||||
state.push('Logging in to United FCU');
|
||||
|
||||
Reference in New Issue
Block a user