mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix no-ssr client side test
This commit is contained in:
parent
3d3e8a298b
commit
20992779af
@ -153,10 +153,10 @@ test('/no-ssr', async t => {
|
|||||||
t.true(html.includes('<div class="no-ssr-placeholder"><p>Loading...</p></div>'))
|
t.true(html.includes('<div class="no-ssr-placeholder"><p>Loading...</p></div>'))
|
||||||
})
|
})
|
||||||
|
|
||||||
test('/no-ssr (clien-side)', async t => {
|
test('/no-ssr (client-side)', async t => {
|
||||||
const window = await nuxt.renderAndGetWindow(url('/no-ssr'))
|
const window = await nuxt.renderAndGetWindow(url('/no-ssr'))
|
||||||
const html = window.document.body.innerHTML
|
const html = window.document.body.innerHTML
|
||||||
t.true(html.includes('<h1>Displayed only on client-side</h1>'))
|
t.true(html.includes('Displayed only on client-side</h1>'))
|
||||||
})
|
})
|
||||||
|
|
||||||
test('ETag Header', async t => {
|
test('ETag Header', async t => {
|
||||||
|
Loading…
Reference in New Issue
Block a user