diff --git a/tools/e2e/70-guest.mjs b/tools/e2e/70-guest.mjs index 6f349ac9..e2af709d 100644 --- a/tools/e2e/70-guest.mjs +++ b/tools/e2e/70-guest.mjs @@ -203,16 +203,19 @@ export async function guest(t) { JSON.stringify(picker), ); - // 70f. A change stays in the tab: well past the autosave's second, nothing has gone out. + // 70f. A change, played, stays in the tab: well past the autosave's second, nothing has gone out. await clickText('+'); await pickAssetType(t, 'Sprite'); + await t.play(); + const mode = await json('__gm.state.mode'); + await t.stop(); await sleep(2500); const changed = await json('__gm.state.project.assets.length'); const copy = await (await send('GET', `demos/${token}`, { as: 'nobody' })).json(); check( - "a guest's change stays in the tab: no request that writes, and the copy on the server as it was", - changed === 3 && writes.length === 0 && copy.project.assets.length === 2, - JSON.stringify({ changed, writes, served: copy.project.assets.length }), + 'a guest changes the demo and plays it: no request that writes, and the copy on the server as it was', + mode === 'play' && changed === 3 && writes.length === 0 && copy.project.assets.length === 2, + JSON.stringify({ mode, changed, writes, served: copy.project.assets.length }), ); // 70g. Sign in… goes back to the sign-in screen; the demo picked again is the copy as it was.