mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
docs(vtt): [SITE-VTT-01] add bilingual guides and sprite pixel checks
This commit is contained in:
1 parent
d3349e83f2
commit
9ba3c82f99
71 files changed
+6207
-1683
No files matched your search
@@ -100,5 +100,16 @@ for (const language of ['zh', 'en']) {
|
||||
expect(audioTarget.searchParams.get('code')).toContain('artplayerPluginAudioTrack({')
|
||||
expect(failedAssets).toEqual([])
|
||||
await audioExample.close()
|
||||
await page.locator(`.VPSidebar a[href="${prefix}/plugin/vtt-thumbnail.html"]`).click()
|
||||
await expect(page.locator('h1')).toContainText(language === 'en' ? 'VTT Thumbnail' : 'VTT 缩略图')
|
||||
const vttPopup = context.waitForEvent('page')
|
||||
await page.locator('.run-code, [classname="run-code"]').first().click()
|
||||
const vttExample = await vttPopup
|
||||
await vttExample.waitForLoadState('domcontentloaded')
|
||||
const vttTarget = new URL(vttExample.url())
|
||||
expect(vttTarget.searchParams.get('libs')).toBe('./uncompiled/artplayer-plugin-vtt-thumbnail/index.js')
|
||||
expect(vttTarget.searchParams.get('code')).toContain('artplayerPluginVttThumbnail({')
|
||||
expect(failedAssets).toEqual([])
|
||||
await vttExample.close()
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user