fix: synchronize responsive navigation and soundtrack cue
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user