Skip to content

Flaky mobile chrome test #405

@sergeleger

Description

@sergeleger
Error: should be wider than the original segment

expect(received).toBeGreaterThan(expected)

Expected: > 69
Received:   1

  41 |       segBoxPostChange.width,
  42 |       "should be wider than the original segment",
> 43 |     ).toBeGreaterThan(segBoxPreChange.width);
     |       ^
  44 |   await page.locator("segment.wavesurfer-segment").first().click();
  45 |   await expect(
  46 |     page.getByTitle("-2.360").locator("div"),
    at /home/legers/Work/Studio-Web/packages/studio-web/tests/editor/use-audio-toolbar.spec.ts:43:7

The purpose of the failing test is to verify that we can modify the length of a single audio segment. In this case the test attempts to capture the audio leading up to the word "This" by moving the first black handle to the left:

Image

When the test fails, we get this instead: (note the "This" segment is now very narrow and the "This" text now overlaps the "is" segment)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions