Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky jest test: <MatrixChat /> › mobile registration › should render mobile registration #28122

Closed
richvdh opened this issue Sep 30, 2024 · 1 comment · Fixed by element-hq/matrix-react-sdk#102
Assignees

Comments

@richvdh
Copy link
Member

richvdh commented Sep 30, 2024

  FAIL  test/components/structures/MatrixChat-test.tsx (54.373 s)
  ● <MatrixChat /> › mobile registration › should render mobile registration

    TypeError: prop.startsWith is not a function

      116 |     const inlineStyleProps = Object.values(document.body.style);
      117 |     for (const prop of inlineStyleProps) {
    > 118 |         if (prop.startsWith("--")) {
          |                  ^
      119 |             document.body.style.removeProperty(prop);
      120 |         }
      121 |     }

      at startsWith (src/theme.ts:118:18)
      at clearCustomTheme (src/theme.ts:272:5)
      at ThemeWatcher.recheck (src/settings/watchers/ThemeWatcher.ts:80:21)
      at MatrixChat.recheck [as viewWelcome] (src/components/structures/MatrixChat.tsx:1103:27)
      at viewWelcome (src/components/structures/MatrixChat.tsx:801:22)
      at MatrixDispatcher.invokeCallback (src/dispatcher/dispatcher.ts:112:31)
      at invokeCallback (src/dispatcher/dispatcher.ts:89:22)
      at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)

https://github.com/element-hq/matrix-react-sdk/actions/runs/11103597649/job/30845884471#step:7:4500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants