Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Ships files first, then the page: no build misses a file.
|
||||
# Ships files first, then the page, so none goes missing.
|
||||
set -eu
|
||||
cd "$(dirname "$0")"
|
||||
site=https://8bitmygoui.zhangyanghaha0407.workers.dev
|
||||
@@ -47,7 +47,7 @@ old=$(sed -n 's#.*src="\(a/main\.[0-9a-f]*\.js\)".*#\1#p' "$stage/index.html")
|
||||
wasm=$(sed -n "s#.*fetch('\\(a/app\\.[0-9a-f]*\\.wasm\\)').*#\\1#p" "dist/$old")
|
||||
curl -fs --max-time 300 "$site/$wasm" -o "dist/$wasm"
|
||||
cp -R dist/a dist/_headers "$stage/"
|
||||
# Step one: the live page, with the new files beside it.
|
||||
# Step one: the live page beside the new files.
|
||||
upload "$stage" "$rev files"
|
||||
npx wrangler versions deploy "$id@100%" --yes --message "$rev files"
|
||||
patient curl -fs -o /dev/null "$site/$main"
|
||||
|
||||
@@ -224,12 +224,12 @@ test('resize keeps whole pixels per dot', async ({ page }) => {
|
||||
expect(Number.isInteger(s.zoom)).toBe(true)
|
||||
})
|
||||
|
||||
test('a Go panic shows GAME OVER in pixels; CONTINUE reloads', async ({ page }) => {
|
||||
test('a Go panic shows GAME OVER in pixels; RETRY reloads', async ({ page }) => {
|
||||
await open(page, '#/f/icons')
|
||||
await page.evaluate(() => window.__8bitGo.pointer('bogus', 0, 0))
|
||||
expect(await texts(page)).toContain('web: unknown pointer kind bogus')
|
||||
await expect(page.locator('#over')).toBeHidden()
|
||||
await click(page, 'CONTINUE?')
|
||||
await click(page, 'RETRY')
|
||||
await page.waitForFunction(() => window.__8bit?.ready && window.__8bit.page() === '/f/icons')
|
||||
expect(await texts(page)).toContain('COPY CODE')
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user