Update browser stack tests

This commit is contained in:
Chocobozzz 2025-02-11 10:25:43 +01:00
parent c8b7980b22
commit bb62408e81
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 22 additions and 6 deletions

View File

@ -71,7 +71,7 @@ module.exports = {
},
{
browserName: 'Firefox',
browserVersion: '78', // Very old ESR
browserVersion: '79', // Oldest supported version
...buildBStackDesktopOptions({ sessionName: 'Firefox ESR Desktop', resolution: '1280x1024', os: 'Windows', osVersion: '8' })
},
@ -100,13 +100,13 @@ module.exports = {
{
browserName: 'Safari',
...buildBStackMobileOptions({ sessionName: 'Safari iPhone', deviceName: 'iPhone 11', osVersion: '13' })
...buildBStackMobileOptions({ sessionName: 'Safari iPhone', deviceName: 'iPhone 11', osVersion: '14' })
},
{
browserName: 'Safari',
...buildBStackMobileOptions({ sessionName: 'Safari iPad', deviceName: 'iPad Pro 11 2020', osVersion: '13' })
...buildBStackMobileOptions({ sessionName: 'Safari iPad', deviceName: 'iPad Pro 11 2020', osVersion: '14' })
}
],

View File

@ -123,6 +123,14 @@
if (/MSIE|Trident/.test(window.navigator.userAgent) ) {
window.displayIncompatibleBrowser()
}
try {
BigInt(9007199254740991)
} catch (err) {
console.error('BigInt is not supported on this web browser')
window.displayIncompatibleBrowser()
}
</script>
<script type="module" src="./embed.ts"></script>

View File

@ -7,6 +7,12 @@ import checker from 'vite-plugin-checker'
import { getCSSConfig, getAliasConfig } from '../build-tools/vite-utils.js'
const nodeConfig = process.env.NODE_CONFIG
? JSON.parse(process.env.NODE_CONFIG)
: undefined
const hostname = nodeConfig?.webserver?.hostname || 'localhost'
const __dirname = dirname(fileURLToPath(import.meta.url))
const root = resolve(__dirname, '../../../')
@ -19,9 +25,11 @@ export default defineConfig(({ mode }) => {
root: resolve(root, 'src', 'standalone', 'videos'),
server: {
host: hostname,
proxy: {
'^/(videos|video-playlists)/(test-)?embed/[^\/\.]+$': {
target: 'http://localhost:5173',
target: 'http://' + hostname + ':5173',
rewrite: (path) => {
return path.replace('/videos/embed/', 'embed.html?videoId=')
.replace('/videos/test-embed/', 'test-embed.html?')
@ -30,13 +38,13 @@ export default defineConfig(({ mode }) => {
}
},
'^/(videos|video-playlists)/(test-)?embed/.*': {
target: 'http://localhost:5173',
target: 'http://' + hostname + ':5173',
rewrite: (path) => {
return path.replace(/\/(videos|video-playlists)\/(test-)?embed\//, '')
}
},
'^/lazy-static': {
target: 'http://localhost:9000'
target: 'http://' + hostname + ':9000'
}
}
},