Skip to content

Commit

Permalink
test: fix intermittent failures in playground/server-origin (#9851)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Aug 28, 2022
1 parent e7712ff commit ec9ce4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isBuild, page } from '~utils'
test('should render', async () => {
const expected = isBuild
? /assets\/asset\.[0-9a-f]+\.png/
: /https:\/\/vue-server-origin\.test\/assets\/asset\.png/
: 'http://localhost/server-origin/test/assets/asset.png'

expect(await page.getAttribute('img', 'src')).toMatch(expected)
expect(await page.getAttribute('img:nth-child(2)', 'src')).toMatch(expected)
Expand Down
2 changes: 1 addition & 1 deletion playground/vue-server-origin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
},
plugins: [vuePlugin()],
server: {
origin: 'https://vue-server-origin.test'
origin: 'http://localhost/server-origin/test'
},
build: {
// to make tests faster
Expand Down

0 comments on commit ec9ce4a

Please sign in to comment.