Skip to content

Commit bd827c2

Browse files
committed
test: remove nuxt from e2e tests
1 parent a3b0947 commit bd827c2

File tree

3 files changed

+54
-3
lines changed

3 files changed

+54
-3
lines changed

e2e/capture.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test('should capture front-end bug in sveltekit example', async ({ page }) => {
111111
expect(capturesAfter.length).toBeGreaterThan(capturesBefore.length);
112112
})
113113

114-
test('should capture front-end bug in nuxt example', async ({ page }) => {
114+
test.skip('should capture front-end bug in nuxt example', async ({ page }) => {
115115
const startTime = new Date();
116116
const capturesBefore = await fetchCaptures('sk_TnBe2CSBNPGE-9jDtiQDvaoef8LOJ17T_xpIvKxVcBJuskGX');
117117
// Start from the index page (the baseURL is set via the webServer in the playwright.config.ts)

playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const config: PlaywrightTestConfig = {
5858
timeout: 120 * 1000,
5959
reuseExistingServer: !process.env.CI,
6060
},
61-
{
61+
/* {
6262
command: `pnpm run dev`,
6363
cwd: join(__dirname, 'examples', 'with-nuxt'),
6464
port: NUXT_PORT,
@@ -67,7 +67,7 @@ const config: PlaywrightTestConfig = {
6767
},
6868
timeout: 120 * 1000,
6969
reuseExistingServer: !process.env.CI,
70-
},
70+
}, */
7171
// Replay examples
7272
{
7373
command: 'pnpm run dev',

test/artifacts.test.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ function Home() {
2424
}
2525
alert("Submitted wrong")
2626
}
27+
28+
return (
29+
<main className="flex min-h-screen flex-col items-center justify-between p-24">
30+
<div className='text-black'>
31+
<input value={inputValue} onChange={(e) => setInputValue(e.target.value)} />
32+
</div>
33+
<button onClick={() => submit()}>Submit</button>
34+
</main>
35+
)
2736
}
2837
`
2938

@@ -334,4 +343,46 @@ describe('artifact markings new', () => {
334343
it('artifacts markings complete', () => {
335344
const markings = addArtifactMarkings(largeFixture, '/file.js')
336345
// @todo: finish this test
346+
expect(markings).toContainEqual({
347+
type: 'call',
348+
startIndex: 486,
349+
endIndex: 499,
350+
functionOrCallId: '/file.js-call-_HomeAnonymousSetInputValue'
351+
})
352+
expect(markings).toContainEqual({
353+
type: 'arguments',
354+
functionOrCallId: '/file.js-call-_HomeAnonymousSetInputValue',
355+
startIndex: 499,
356+
endIndex: 515
357+
})
358+
expect(markings).toContainEqual({
359+
type: 'params',
360+
functionOrCallId: '/file.js-_HomeAnonymous2',
361+
startIndex: 568,
362+
endIndex: 570
363+
})
364+
expect(markings).toContainEqual({
365+
type: 'call',
366+
startIndex: 574,
367+
endIndex: 580,
368+
functionOrCallId: '/file.js-call-_HomeAnonymousSubmit'
369+
})
370+
expect(markings).toContainEqual({
371+
type: 'arguments',
372+
functionOrCallId: '/file.js-call-_HomeAnonymousSubmit',
373+
startIndex: 580,
374+
endIndex: 582
375+
})
376+
expect(markings).toContainEqual({
377+
type: 'call',
378+
startIndex: 486,
379+
endIndex: 499,
380+
functionOrCallId: '/file.js-call-_HomeAnonymousSetInputValue'
381+
})
382+
expect(markings).toContainEqual({
383+
type: 'arguments',
384+
functionOrCallId: '/file.js-call-_HomeAnonymousSetInputValue',
385+
startIndex: 499,
386+
endIndex: 515
387+
})
337388
})

0 commit comments

Comments
 (0)