Skip to content

Commit d5395aa

Browse files
committed
fix: test
1 parent 68e5191 commit d5395aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/integration/sounds.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ describe('Working with sounds', () => {
146146
test('Copy and pasting within a sound changes its duration', async () => {
147147
await loadUri(uri);
148148
await clickText('Sounds');
149-
await findByText('0.85', scope.soundsTab); // Original meow sound duration
149+
await findByText('0.59', scope.soundsTab); // Original meow sound duration
150150
await clickText('Copy', scope.soundsTab);
151151
await clickText('Paste', scope.soundsTab);
152-
await findByText('1.70', scope.soundsTab); // Sound has doubled in duration
152+
await findByText('1.18', scope.soundsTab); // Sound has doubled in duration
153153

154154
const logs = await getLogs();
155155
await expect(logs).toEqual([]);
@@ -162,7 +162,7 @@ describe('Working with sounds', () => {
162162
await clickXpath('//span[text()="Stage"]');
163163
await findByText('0.02', scope.soundsTab); // Original pop sound duration
164164
await clickText('Paste', scope.soundsTab);
165-
await findByText('0.87', scope.soundsTab); // Duration of pop + meow sound
165+
await findByText('0.61', scope.soundsTab); // Duration of pop + meow sound
166166

167167
const logs = await getLogs();
168168
await expect(logs).toEqual([]);
@@ -173,11 +173,11 @@ describe('Working with sounds', () => {
173173
await clickText('Sounds');
174174
const el = await findByXpath('//button[@aria-label="Choose a Sound"]');
175175
await el.sendKeys(Key.chord(Key.COMMAND, 'a')); // Select all
176-
await findByText('0.85', scope.soundsTab); // Meow sound duration
176+
await findByText('0.59', scope.soundsTab); // Meow sound duration
177177
await el.sendKeys(Key.DELETE);
178178
await findByText('0.00', scope.soundsTab); // Sound is now empty
179179
await el.sendKeys(Key.chord(Key.COMMAND, 'z')); // undo
180-
await findByText('0.85', scope.soundsTab); // Meow sound is back
180+
await findByText('0.59', scope.soundsTab); // Meow sound is back
181181
await el.sendKeys(Key.chord(Key.COMMAND, Key.SHIFT, 'z')); // redo
182182
await findByText('0.00', scope.soundsTab); // Sound is empty again
183183

0 commit comments

Comments
 (0)