Zum Symbol navigieren, ueber dieselbe Suche, die die Kommandozeile fuehrt.
(page, origin)
| 142 | |
| 143 | /** Zum Symbol navigieren, ueber dieselbe Suche, die die Kommandozeile fuehrt. */ |
| 144 | async function openTarget(page, origin) { |
| 145 | await page.goto(`${origin}/?project=${PROJECT}`, { waitUntil: 'load' }); |
| 146 | await page.waitForSelector('[data-testid="atlas-statusbar"]', { timeout: 30000 }); |
| 147 | const input = page.locator('[data-testid="atlas-command-input"]'); |
| 148 | await input.click(); |
| 149 | await input.fill(''); |
| 150 | await input.pressSequentially(TARGET, { delay: 40 }); |
| 151 | await page.waitForSelector(`[data-testid="atlas-search-row"][data-name="${TARGET}"]`, { timeout: 30000 }); |
| 152 | await page.waitForTimeout(600); |
| 153 | await page.click(`[data-testid="atlas-search-row"][data-name="${TARGET}"]`); |
| 154 | await page.waitForFunction( |
| 155 | (expected) => globalThis.__atlasReader?.document?.path === expected, |
| 156 | TARGET_FILE, |
| 157 | { timeout: 40000 }, |
| 158 | ); |
| 159 | await page.waitForFunction( |
| 160 | () => /userService\.createUser$/.test(globalThis.__atlasTwin?.qualifiedName ?? ''), |
| 161 | undefined, |
| 162 | { timeout: 40000 }, |
| 163 | ); |
| 164 | } |
| 165 | |
| 166 | /** Warten, bis das Bild wirklich gefuellt ist. Ein leeres Bild ist keine Antwort. */ |
| 167 | async function waitForFlow(page) { |