mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Turn activity music on by default, like the activity sounds
AI Assisted
This commit is contained in:
1 parent
74d07be90a
commit
037fb0d864
3 files changed
+8
-8
No files matched your search
@@ -1259,12 +1259,12 @@ test("Play activity sounds in User Preferences silences the games and the countd
|
||||
await s.page.click("#btn-looks");
|
||||
await s.page.click("#prefs-tab-sounds");
|
||||
const tune = s.page.locator("#looks-game-music");
|
||||
assert.equal(await tune.isChecked(), false, "game music is off by default");
|
||||
await tune.check();
|
||||
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === true);
|
||||
assert.equal(await tune.isChecked(), true, "game music is on by default");
|
||||
await tune.uncheck();
|
||||
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === false);
|
||||
await s.page.click("#looks-reset");
|
||||
await s.page.locator("#looks-activity-sounds:checked").waitFor();
|
||||
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === false);
|
||||
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === true);
|
||||
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).activitySounds === true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user