mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Update live mode
This commit is contained in:
parent
cc42428d24
commit
eb983ba419
1 changed files with 11 additions and 0 deletions
|
|
@ -8,6 +8,17 @@ test.describe('Live Mode', () => {
|
|||
await closeOnboardingModal(page)
|
||||
await waitForMapLibre(page)
|
||||
await waitForLoadingComplete(page)
|
||||
|
||||
// Wait for layers to be fully initialized
|
||||
await page.waitForFunction(() => {
|
||||
const element = document.querySelector('[data-controller*="maps--maplibre"]')
|
||||
if (!element) return false
|
||||
const app = window.Stimulus || window.Application
|
||||
if (!app) return false
|
||||
const controller = app.getControllerForElementAndIdentifier(element, 'maps--maplibre')
|
||||
return controller?.layerManager?.layers?.recentPointLayer !== undefined
|
||||
}, { timeout: 10000 })
|
||||
|
||||
await page.waitForTimeout(1000)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue