ShareDialog: fix share on Twitter URL #2487
Annotations
6 errors
Run tests:
test/unit-tests/components/views/dialogs/ShareDialog-test.tsx#L58
expect(received).toMatchSnapshot()
Snapshot name: `ShareDialog should render a share dialog for an URL 1`
- Snapshot - 1
+ Received + 1
@@ -80,11 +80,11 @@
alt="Facebook"
src="image-file-stub"
/>
</a>
<a
- href="https://twitter.com/home?status=https://matrix.org/"
+ href="https://twitter.com/intent/tweet?text=https://matrix.org/"
rel="noreferrer noopener"
target="_blank"
title="Twitter"
>
<img
at toMatchSnapshot (test/unit-tests/components/views/dialogs/ShareDialog-test.tsx:58:30)
|
Run tests:
test/unit-tests/components/views/dialogs/ShareDialog-test.tsx#L58
expect(received).toMatchSnapshot()
Snapshot name: `ShareDialog should render a share dialog for a room member 1`
- Snapshot - 1
+ Received + 1
@@ -80,11 +80,11 @@
alt="Facebook"
src="image-file-stub"
/>
</a>
<a
- href="https://twitter.com/home?status=https://matrix.to/#/@alice:example.org"
+ href="https://twitter.com/intent/tweet?text=https://matrix.to/#/@alice:example.org"
rel="noreferrer noopener"
target="_blank"
title="Twitter"
>
<img
at toMatchSnapshot (test/unit-tests/components/views/dialogs/ShareDialog-test.tsx:58:30)
|
Run tests:
test/unit-tests/components/views/dialogs/ShareDialog-test.tsx#L72
expect(received).toMatchSnapshot()
Snapshot name: `ShareDialog should render a share dialog for a room 1`
- Snapshot - 1
+ Received + 1
@@ -107,11 +107,11 @@
alt="Facebook"
src="image-file-stub"
/>
</a>
<a
- href="https://twitter.com/home?status=https://matrix.to/#/!1:example.org"
+ href="https://twitter.com/intent/tweet?text=https://matrix.to/#/!1:example.org"
rel="noreferrer noopener"
target="_blank"
title="Twitter"
>
<img
at Object.toMatchSnapshot (test/unit-tests/components/views/dialogs/ShareDialog-test.tsx:72:30)
|
Run tests:
test/unit-tests/components/views/dialogs/ShareDialog-test.tsx#L95
expect(received).toMatchSnapshot()
Snapshot name: `ShareDialog should render a share dialog for a matrix event 1`
- Snapshot - 1
+ Received + 1
@@ -108,11 +108,11 @@
alt="Facebook"
src="image-file-stub"
/>
</a>
<a
- href="https://twitter.com/home?status=https://matrix.to/#/!1:example.org/!eventId"
+ href="https://twitter.com/intent/tweet?text=https://matrix.to/#/!1:example.org/!eventId"
rel="noreferrer noopener"
target="_blank"
title="Twitter"
>
<img
at Object.toMatchSnapshot (test/unit-tests/components/views/dialogs/ShareDialog-test.tsx:95:30)
|
Run tests:
test/unit-tests/components/views/dialogs/ShareDialog-test.tsx#L131
expect(received).toMatchSnapshot()
Snapshot name: `ShareDialog should not render the QR code if disabled 1`
- Snapshot - 1
+ Received + 1
@@ -65,11 +65,11 @@
alt="Facebook"
src="image-file-stub"
/>
</a>
<a
- href="https://twitter.com/home?status=https://matrix.to/#/!1:example.org"
+ href="https://twitter.com/intent/tweet?text=https://matrix.to/#/!1:example.org"
rel="noreferrer noopener"
target="_blank"
title="Twitter"
>
<img
at Object.toMatchSnapshot (test/unit-tests/components/views/dialogs/ShareDialog-test.tsx:131:30)
|
Run tests
Process completed with exit code 1.
|
Loading