test: add regression test for nested page from https://github.com/nux… #20
Annotations
3 errors
Test (fixtures):
test/basic.test.ts#L660
TimeoutError: page.waitForSelector: Timeout 30000ms exceeded.
Call log:
- waiting for locator('.nuxt-loading-indicator') to be hidden
64 × locator resolved to 2 elements. Proceeding with the first one: <div class="nuxt-loading-indicator"></div>
❯ test/basic.test.ts:660:16
|
Test (fixtures):
test/basic.test.ts#L2766
AssertionError: expected '<!DOCTYPE html><html data-capo=""><h…' to contain '<div><!--teleport start--><!--telepor…'
Expected: "<div><!--teleport start--><!--teleport end--><h1>Normal content</h1></div></div></div><span id="nuxt-teleport"><!--teleport start anchor--><div>Nuxt Teleport</div><!--teleport anchor--></span><script"
Received: "<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8"><meta name="viewport" content="width=1024, initial-scale=1"><link rel="stylesheet" href="/_nuxt/assets/global.css" crossorigin><link rel="stylesheet" href="/_nuxt/virtual.css" crossorigin><link rel="stylesheet" href="/_nuxt/assets/plugin.css" crossorigin><link rel="stylesheet" href="/_nuxt/components/ServerOnlyComponent.server.vue?vue&type=style&index=0&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/components/ServerOnlyComponentChild.vue?vue&type=style&index=0&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/pages/nested/[foo].vue?vue&type=style&index=0&scoped=40831784&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/assets/functional.css" crossorigin><link rel="stylesheet" href="/_nuxt/modules/page-extend/pages/big-page.vue?vue&type=style&index=0&scoped=2dcb13d9&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/pages/client.vue?vue&type=style&index=0&scoped=97d9bc33&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/pages/keyed-composables/index.vue?vue&type=style&index=0&scoped=2dc8c6f0&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/pages/keyed-composables/local.vue?vue&type=style&index=0&scoped=5e7938e7&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/pages/islands.vue?vue&type=style&index=0&scoped=42116dd4&lang.css" crossorigin><link rel="stylesheet" href="/_nuxt/components/islands/PureComponent.vue?vue&type=style&index=0&scoped=c0c0cf89&lang.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/_nuxt/D:/a/nuxt/nuxt/packages/nuxt/dist/app/entry.async.js"><meta name="description" content="Nuxt Fixture"><title>- Fixture</title><script type="module" src="/_nuxt/@vite/client" crossorigin></script><script type="module" src="/_nuxt/D:/a/nuxt/nuxt/packages/nuxt/dist/app/entry.async.js" crossorigin></script></head><body><div id="__nuxt"><!--[--><div class="nuxt-loading-indicator" style="position:fixed;top:0;right:0;left:0;pointer-events:none;width:auto;height:3px;opacity:0;background:repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%);background-size:Infinity% auto;transform:scaleX(0%);transform-origin:left;transition:transform 0.1s, height 0.4s, opacity 0.4s;z-index:999999;"></div><div><div class="nuxt-loading-indicator" style="position:fixed;top:0;right:0;left:0;pointer-events:none;width:auto;height:3px;opacity:0;background:repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%);background-size:Infinity% auto;transform:scaleX(0%);transform-origin:left;transition:transform 0.1s, height 0.4s, opacity 0.4s;z-index:999999;" id="loading-indicator"></div><div>Extended layout from foo</div><div><!--teleport start--><!--teleport end--><h1>Normal content</h1></div></div><!--]--></div><span id="nuxt-teleport"><!--teleport start anchor--><div>Nuxt Teleport</div><!--teleport anchor--></span><script type="application/json" data-nuxt-data="nuxt-app-basic" data-ssr="true" id="__NUXT_DATA__">[["ShallowReactive",1],{"data":2,"state":7,"once":9,"_errors":10,"serverRendered":12,"path":13,"blinkable":14,"prerenderedAt":16},["ShallowReactive",3],{"hey":4},{"foo":5,"baz":6},"bar","qux",["Reactive",8],{},["Set"],["ShallowReactive",11],{"hey":-1},true,"/nuxt-teleport",["BlinkingText",15],"_",1732978950548]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{testConfig:123,needsFallback:""},app:{baseURL:"/",buildId:"dev",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>"
❯ test/basic.test.ts:2766:18
|
Test (fixtures)
Process completed with exit code 1.
|
Loading