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');
|
||||
|
||||
@ -1,6 +1,12 @@
|
||||
<script>
|
||||
import '../app.css';
|
||||
import { setContext } from 'svelte';
|
||||
import { pwaInfo } from 'virtual:pwa-info';
|
||||
|
||||
console.log('PWA Info:', pwaInfo);
|
||||
const webManifestLink = $state(pwaInfo ? pwaInfo.webManifest.linkTag : '');
|
||||
$inspect(webManifestLink);
|
||||
|
||||
let { children, data } = $props();
|
||||
let budgets = $derived(data.budgets);
|
||||
let total = $derived(data.total);
|
||||
@ -15,7 +21,9 @@
|
||||
|
||||
setContext('addToast', addToast);
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
{@html webManifestLink}
|
||||
</svelte:head>
|
||||
<div class="drawer lg:drawer-open">
|
||||
<input id="my-drawer-2" type="checkbox" class="drawer-toggle" />
|
||||
<div class="drawer-content flex flex-col m-5">
|
||||
|
||||
@ -10,8 +10,6 @@
|
||||
let budgetTransactions = $derived(data.budgetTransactions);
|
||||
let last30days = $derived(data.last30DaysTransactionsSums.reverse());
|
||||
|
||||
$inspect(last30days);
|
||||
|
||||
let chartData = $derived(
|
||||
last30days.reduce(
|
||||
(acc, curr) => [...acc, acc[acc.length - 1] + Number(curr.sum)],
|
||||
@ -19,7 +17,6 @@
|
||||
)
|
||||
);
|
||||
|
||||
$inspect(chartData);
|
||||
let chartDates = $derived([
|
||||
'now',
|
||||
...last30days.map((day) => `${day.date.getMonth() + 1}/${day.date.getDate()}`)
|
||||
|
||||
Reference in New Issue
Block a user