mirror of
https://github.com/stablyai/orca.git
synced 2026-10-04 00:02:21 +00:00
test(e2e): dismiss the browser tour before starting screenshot markup (#24534)
This commit is contained in:
@@ -35,7 +35,13 @@ test('draws and copies a screenshot from a client-hosted browser without replaci
|
||||
const target = { urlPrefix: fixture.origin, remotePageId: browser.remotePageId }
|
||||
await waitForRenderedClientWebview(client.page, target, 'client-hosted fixture never rendered')
|
||||
|
||||
await client.page.getByRole('button', { name: 'Got it', exact: true }).click()
|
||||
// The markup hint also says "Got it" and can appear before the browser tour.
|
||||
const browserTour = client.page.getByRole('dialog', {
|
||||
name: 'This page renders on your desktop',
|
||||
exact: true
|
||||
})
|
||||
await browserTour.getByRole('button', { name: 'Got it', exact: true }).click()
|
||||
await expect(browserTour).toBeHidden()
|
||||
await testInfo.attach('client-hosted-toolbar', {
|
||||
body: await client.page.screenshot({ path: testInfo.outputPath('toolbar.png') }),
|
||||
contentType: 'image/png'
|
||||
|
||||
Reference in New Issue
Block a user