fix(vishot-*,scenarios-*): incorrect button click impl, outdated import
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
"typecheck": "vue-tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@moeru/std": "catalog:",
|
||||
"@proj-airi/vishot-runner-browser": "workspace:^",
|
||||
"@proj-airi/vishot-runtime": "workspace:^",
|
||||
"date-fns": "catalog:",
|
||||
|
||||
@@ -4,7 +4,7 @@ import { ScenarioCanvas, ScenarioCaptureRoot } from '@proj-airi/vishot-runtime/v
|
||||
import { onMounted } from 'vue'
|
||||
|
||||
import stageShot from '../../artifacts/raw/00-stage-tamagotchi.png'
|
||||
import websocketSettingsShot from '../../artifacts/raw/04-websocket-settings.png'
|
||||
import websocketSettingsShot from '../../artifacts/raw/03-websocket-settings.png'
|
||||
import Icon from '../components/icon.vue'
|
||||
|
||||
import { PlatformRoot } from '../components/platforms/macos-26'
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@moeru/std": "catalog:",
|
||||
"@proj-airi/vishot-runner-electron": "workspace:^"
|
||||
}
|
||||
}
|
||||
|
||||
+6
-7
@@ -1,28 +1,27 @@
|
||||
/* eslint-disable e18e/prefer-static-regex */
|
||||
import { sleep } from '@moeru/std'
|
||||
import { defineScenario } from '@proj-airi/vishot-runner-electron'
|
||||
|
||||
export default defineScenario({
|
||||
id: 'demo-controls-settings-chat-websocket',
|
||||
async run({ capture, controlsIsland, settingsWindow, stageWindows }) {
|
||||
const mainWindow = await stageWindows.waitFor('main')
|
||||
await mainWindow.page.waitForTimeout(2000)
|
||||
await capture('00-stage-tamagotchi', mainWindow.page)
|
||||
await sleep(500)
|
||||
|
||||
await controlsIsland.expand(mainWindow.page)
|
||||
await mainWindow.page.waitForTimeout(300)
|
||||
await sleep(1000)
|
||||
await capture('01-controls-island-expanded', mainWindow.page)
|
||||
|
||||
const settingsWindowSnapshot = await controlsIsland.openSettings(mainWindow.page)
|
||||
await settingsWindowSnapshot.page.getByText(/connection|websocket|router/i).first().waitFor({ state: 'visible' })
|
||||
await settingsWindowSnapshot.page.waitForTimeout(300)
|
||||
await sleep(1000)
|
||||
await capture('02-settings-window', settingsWindowSnapshot.page)
|
||||
|
||||
await mainWindow.page.bringToFront()
|
||||
await controlsIsland.expand(mainWindow.page)
|
||||
|
||||
const websocketSettingsPage = await settingsWindow.goToConnection(settingsWindowSnapshot.page)
|
||||
await websocketSettingsPage.getByText('WebSocket Server Address').waitFor({ state: 'visible' })
|
||||
await websocketSettingsPage.waitForTimeout(750)
|
||||
await capture('04-websocket-settings', websocketSettingsPage)
|
||||
await sleep(1000)
|
||||
await capture('03-websocket-settings', websocketSettingsPage)
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user