fix(vishot-*,deps): update lock, incorrect button impl
This commit is contained in:
@@ -5,12 +5,17 @@ function iconAttributeSelector(iconName: string): string {
|
||||
}
|
||||
|
||||
async function clickControlButtonByIcon(page: Page, iconName: string): Promise<void> {
|
||||
const button = page.locator('button').filter({
|
||||
has: page.locator(iconAttributeSelector(iconName)),
|
||||
}).last()
|
||||
const button = page
|
||||
.locator('button')
|
||||
.filter({
|
||||
has: page.locator(iconAttributeSelector(iconName)),
|
||||
})
|
||||
.last()
|
||||
|
||||
await button.waitFor({ state: 'visible', timeout: 15_000 })
|
||||
await button.waitFor({ state: 'visible', timeout: 20_000 })
|
||||
await button.hover()
|
||||
await button.click({ force: true })
|
||||
await button.hover()
|
||||
}
|
||||
|
||||
export async function expandControlsIsland(page: Page): Promise<void> {
|
||||
@@ -26,14 +31,19 @@ export async function openChatFromControlsIsland(page: Page): Promise<void> {
|
||||
}
|
||||
|
||||
export async function openHearingFromControlsIsland(page: Page): Promise<Page> {
|
||||
const expandButton = page.locator('button').filter({
|
||||
has: page.locator(iconAttributeSelector('i-solar:alt-arrow-up-line-duotone')),
|
||||
}).last()
|
||||
const expandButton = page
|
||||
.locator('button')
|
||||
.filter({
|
||||
has: page.locator(iconAttributeSelector('i-solar:alt-arrow-up-line-duotone')),
|
||||
})
|
||||
.last()
|
||||
|
||||
const hearingButton = expandButton.locator('xpath=ancestor::button[1]/following::button[1]').first()
|
||||
|
||||
await hearingButton.waitFor({ state: 'visible', timeout: 15_000 })
|
||||
await hearingButton.hover()
|
||||
await hearingButton.click({ force: true })
|
||||
await hearingButton.hover()
|
||||
|
||||
await page.getByText('Input device').waitFor({ state: 'visible', timeout: 15_000 })
|
||||
return page
|
||||
|
||||
Generated
+6
@@ -2515,6 +2515,9 @@ importers:
|
||||
|
||||
packages/scenarios-stage-tamagotchi-browser:
|
||||
dependencies:
|
||||
'@moeru/std':
|
||||
specifier: 'catalog:'
|
||||
version: 0.1.0-beta.17
|
||||
'@proj-airi/vishot-runner-browser':
|
||||
specifier: workspace:^
|
||||
version: link:../vishot-runner-browser
|
||||
@@ -2549,6 +2552,9 @@ importers:
|
||||
|
||||
packages/scenarios-stage-tamagotchi-electron:
|
||||
dependencies:
|
||||
'@moeru/std':
|
||||
specifier: 'catalog:'
|
||||
version: 0.1.0-beta.17
|
||||
'@proj-airi/vishot-runner-electron':
|
||||
specifier: workspace:^
|
||||
version: link:../vishot-runner-electron
|
||||
|
||||
Reference in New Issue
Block a user