mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 10:33:18 -08:00
docs(audio): [SITE-AUDIO-01] add bilingual track guides and browser coverage
This commit is contained in:
1 parent
6af43208af
commit
d3349e83f2
67 files changed
+6011
-1647
No files matched your search
@@ -89,5 +89,16 @@ for (const language of ['zh', 'en']) {
|
||||
expect(dashTarget.searchParams.get('code')).toContain('art.on(\'destroy\', destroyDash)')
|
||||
expect(failedAssets).toEqual([])
|
||||
await dashExample.close()
|
||||
await page.locator(`.VPSidebar a[href="${prefix}/plugin/audio-track.html"]`).click()
|
||||
await expect(page.locator('h1')).toContainText(language === 'en' ? 'Audio Track' : '独立音轨')
|
||||
const audioPopup = context.waitForEvent('page')
|
||||
await page.locator('.run-code, [classname="run-code"]').first().click()
|
||||
const audioExample = await audioPopup
|
||||
await audioExample.waitForLoadState('domcontentloaded')
|
||||
const audioTarget = new URL(audioExample.url())
|
||||
expect(audioTarget.searchParams.get('libs')).toBe('./uncompiled/artplayer-plugin-audio-track/index.js')
|
||||
expect(audioTarget.searchParams.get('code')).toContain('artplayerPluginAudioTrack({')
|
||||
expect(failedAssets).toEqual([])
|
||||
await audioExample.close()
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user