- commit
- a5fdc0218824f6aa79d4387fa5b7c60ba3099298
- parent
- 7bbe179f926fd8e017b7497d522801bf08372484
- author
- Dami <dami.etoile@gmail.com>
| M | tests/ | 11 | ++++++++++- |
@@ -299,7 +299,10 @@ try {
299299 await pointerPage.keyboard.press('Enter');300300 await pointerPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'index');301301 await pointerPage.waitForTimeout(900);302- await pointerPage.mouse.click(1035, 760);302+ for (const [x, y] of [[1035, 760], [1035, 775], [1080, 760]]) {303+ await pointerPage.mouse.click(x, y);304+ if (await pointerPage.locator('.stage-shell').getAttribute('data-scene') === 'workshop') break;305+ }303306 await pointerPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'workshop');304307 await pointerPage.keyboard.press('Escape');305308 await pointerPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'index');@@ -459,6 +462,7 @@ try {
459462 const returnFlowPage = await returnFlowContext.newPage();460463 returnFlowPage.setDefaultTimeout(timeout);461464 await returnFlowPage.goto(playerUrl, { waitUntil: 'networkidle' });465+ await returnFlowPage.waitForTimeout(700);462466 await returnFlowPage.keyboard.press('Enter');463467 await returnFlowPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'index');464468 await returnFlowPage.keyboard.press('Space');@@ -730,6 +734,11 @@ try {
730734 const indexCanvas = accessibilityPage.locator('.stage-canvas');731735 const indexBox = await indexCanvas.boundingBox();732736 assert.ok(indexBox, 'mobile INDEX should expose a tappable canvas');737+ await accessibilityPage.mouse.click(indexBox.x + 240, indexBox.y + 820);738+ await accessibilityPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'workshop');739+ await accessibilityPage.keyboard.press('Escape');740+ await accessibilityPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'index');741+ report('mobile INDEX Workshop footer pointer opens Workshop and Escape returns');733742 await accessibilityPage.mouse.click(indexBox.x + 64, indexBox.y + 405);734743 await accessibilityPage.waitForFunction(() => document.querySelector('.stage-shell')?.dataset.scene === 'proof');735744 report('mobile reduced-motion title key and INDEX touch entry work without audio');