Skip to content

Commit dc04d8f

Browse files
authored
test: fix intermittent failures in playground/server-origin (#9851)
1 parent 0ae630f commit dc04d8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

playground/vue-server-origin/__tests__/vue-server-origin.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { isBuild, page } from '~utils'
44
test('should render', async () => {
55
const expected = isBuild
66
? /assets\/asset\.[0-9a-f]+\.png/
7-
: /https:\/\/vue-server-origin\.test\/assets\/asset\.png/
7+
: 'http://localhost/server-origin/test/assets/asset.png'
88

99
expect(await page.getAttribute('img', 'src')).toMatch(expected)
1010
expect(await page.getAttribute('img:nth-child(2)', 'src')).toMatch(expected)

playground/vue-server-origin/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default defineConfig({
1010
},
1111
plugins: [vuePlugin()],
1212
server: {
13-
origin: 'https://vue-server-origin.test'
13+
origin: 'http://localhost/server-origin/test'
1414
},
1515
build: {
1616
// to make tests faster

0 commit comments

Comments
 (0)