Skip to content

Apply Cypress Testing Library to the existing E2E tests #25033

@luixxiul

Description

@luixxiul

matrix-org/matrix-react-sdk#10446 implemented Cypress Testing Library to align Jest tests and Cypress tests in terms of using Test Library (#24906 (comment)), and I think Cypress Testing Library should be applied to not only a new test but also the existing tests.

Here is a list of the current Cypress E2E tests.

  • analytics-toast.ts 10718
  • audio-player.spec.ts: 10537
  • composer.spec.ts: 10511 10538
  • consent.spec.ts: 10514
  • create-room.spec.ts 10542
  • crypto.spec.ts: 10512
  • decryption-failure.spec.ts: 10513 10541
  • device-management.spec.ts 10585
  • editing.spec.ts 10543
  • events.spec.ts 10590
  • file-panel.spec.ts 10574
  • get-openid-token.spec.ts 10586
  • hidden-rr-migration.spec.ts
  • kick.spec.ts 10587
  • layout.spec.ts
  • lazy-loading.spec.ts 10591
  • location.spec.ts 10612
  • login.spec.ts 10597
  • one-to-one-chat.spec.ts 10572
  • permalinks.spec.ts
  • pills-click-in-app.spec.ts 10582
  • pollHistory.spec.ts 10611
  • polls.spec.ts 10609
  • read_events.spec.ts 10719
  • register.spec.ts 10566
  • right-panel.spec.ts 10539
  • room-directory.spec.ts 10596
  • room.spec.ts 10608
  • send_event.spec.ts 10613
  • sliding-sync.ts 10618
  • spaces.spec.ts 10620
  • spotlight.spec.ts 10621
  • stickers.spec.ts 10622
  • threads.spec.ts 10680
  • timeline.spec.ts 10540 (partial) 10721
  • update.spec.ts
  • user-menu.spec.ts 10578
  • user-onboarding-new.ts 10728
  • user-onboarding-old.ts 10728
  • user-view.spec.ts 10577
  • widget-pip-close.spec.ts
  • Files inside support/ directory 10619

Please note that some of them do not require Cypress Testing Library, as they do not emulate interactions by users.

Have you considered any alternatives?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions