it('expect render page without any error or logs',async()=>{
awaitexpectNoClientErrors('/')
})
it('test HelloWorld.vue',async()=>{
consthtml=await$fetch('/')
const{page}=awaitrenderPage('/')
expect(html).toContain('<div id="hello-world">hello, Helloworld.vue here ! </div>')
expect(awaitpage.locator('body').innerHTML()).toContain('<div id="hello-world">hello, Helloworld.vue here ! </div>')
})
it('test Name.ts',async()=>{
consthtml=await$fetch('/')
const{page}=awaitrenderPage('/')
expect(html).toContain('<div id="name">I am the Name.ts component</div>')
expect(awaitpage.locator('body').innerHTML()).toContain('<div id="name">I am the Name.ts component</div>')
})
it('test ShowTemplate.ts',async()=>{
consthtml=await$fetch('/')
const{page}=awaitrenderPage('/')
expect(html).toContain('<div id="show-template">Hello my name is : John, i am defined by ShowTemplate.vue and my template is retrieved from the API</div>')
expect(awaitpage.locator('body').innerHTML()).toContain('<div id="show-template">Hello my name is : John, i am defined by ShowTemplate.vue and my template is retrieved from the API</div>')
})
it('test Interactive component.ts',async()=>{
consthtml=await$fetch('/')
const{page}=awaitrenderPage('/')
expect(html).toContain('I am defined by Interactive in the setup of App.vue. My full component definition is retrieved from the api')
expect(awaitpage.locator('#interactive').innerHTML()).toContain('I am defined by Interactive in the setup of App.vue. My full component definition is retrieved from the api')