diff options
| author | maguroshouta <54607611+maguroshouta@users.noreply.github.com> | 2023-08-22 15:56:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-22 15:56:36 +0900 |
| commit | cb80dff7df07e9ea9292365fe82fc7af09cc63c1 (patch) | |
| tree | 7f7ef1dd2c4c3f594dc15a8cc1b4d1be7260dada /packages/frontend/test | |
| parent | New Crowdin updates (#11397) (diff) | |
| download | misskey-cb80dff7df07e9ea9292365fe82fc7af09cc63c1.tar.gz misskey-cb80dff7df07e9ea9292365fe82fc7af09cc63c1.tar.bz2 misskey-cb80dff7df07e9ea9292365fe82fc7af09cc63c1.zip | |
x.comでも展開ができるように (#11757)
Diffstat (limited to 'packages/frontend/test')
| -rw-r--r-- | packages/frontend/test/url-preview.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/frontend/test/url-preview.test.ts b/packages/frontend/test/url-preview.test.ts index b5fcf9bece..0cf3a417e2 100644 --- a/packages/frontend/test/url-preview.test.ts +++ b/packages/frontend/test/url-preview.test.ts @@ -152,4 +152,13 @@ describe('MkUrlPreview', () => { assert.strictEqual(iframe?.getAttribute('allow'), 'fullscreen;web-share'); assert.strictEqual(iframe?.getAttribute('sandbox'), 'allow-popups allow-scripts allow-same-origin'); }); + + test('Loading a post in iframe', async () => { + const iframe = await renderAndOpenPreview({ + url: 'https://x.com/i/web/status/1685072521782325249', + }); + assert.exists(iframe, 'iframe should exist'); + assert.strictEqual(iframe?.getAttribute('allow'), 'fullscreen;web-share'); + assert.strictEqual(iframe?.getAttribute('sandbox'), 'allow-popups allow-scripts allow-same-origin'); + }); }); |