fix: synchronize responsive navigation and soundtrack cue

This commit is contained in:
2026-09-02 18:33:52 +03:00
parent b4728ceef0
commit 2ea3cab142
12 changed files with 661 additions and 232 deletions

View File

@@ -262,14 +262,14 @@ describe("DriveControls", () => {
},
});
it("presents one explicit drive action before audio activation", async () => {
it("presents one explicit soundtrack action before audio activation", async () => {
const wrapper = mountControls(policy());
expect(wrapper.get('[data-drive-state="idle"]').text()).toContain(
"START THE DRIVE",
"PLAY SOUNDTRACK",
);
expect(wrapper.find('[aria-label="Mute sound"]').exists()).toBe(false);
await wrapper.get('[aria-label="Start the drive"]').trigger("click");
await wrapper.get('[aria-label="Play soundtrack"]').trigger("click");
expect(wrapper.emitted("audioStart")).toHaveLength(1);
wrapper.unmount();
});