Skip to content

Commit b1f1686

Browse files
committed
test: skip tests for svelte5 package
Update test.skip conditions to also skip tests when process.env.PACKAGE is 'svelte5', in addition to 'svelte'. This ensures tests are not run for unsupported or untested Svelte 5 environments.
1 parent 62fff46 commit b1f1686

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/events.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ test.describe('Events', () => {
408408
})
409409

410410
test('can delay onFinish from firing by returning a promise (link)', async ({ page }) => {
411-
test.skip(process.env.PACKAGE === 'svelte', 'Feature not supported by the Svelte adapter')
411+
test.skip(process.env.PACKAGE === 'svelte' || process.env.PACKAGE === 'svelte5', 'Feature not supported by the Svelte adapter')
412412

413413
await page.getByRole('button', { exact: true, name: 'Error Event Link (delaying onFinish w/ Promise)' }).click()
414414

@@ -481,7 +481,7 @@ test.describe('Events', () => {
481481
})
482482

483483
test('can delay onFinish from firing by returning a promise (link)', async ({ page }) => {
484-
test.skip(process.env.PACKAGE === 'svelte', 'Feature not supported by the Svelte adapter')
484+
test.skip(process.env.PACKAGE === 'svelte' || process.env.PACKAGE === 'svelte5', 'Feature not supported by the Svelte adapter')
485485

486486
await page
487487
.getByRole('button', { exact: true, name: 'Success Event Link (delaying onFinish w/ Promise)' })

tests/form-helper.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ test.describe('Form Helper', () => {
308308
})
309309

310310
test('form should be dirty after setting the defaults', async ({ page }) => {
311-
test.skip(process.env.PACKAGE === 'svelte', 'Skipping Svelte for now')
311+
test.skip(process.env.PACKAGE === 'svelte' || process.env.PACKAGE === 'svelte5', 'Skipping Svelte for now')
312312

313313
await expect(page.getByText('Form is clean')).toBeVisible()
314314
await page.getByRole('button', { name: 'Defaults', exact: true }).click()
@@ -318,7 +318,7 @@ test.describe('Form Helper', () => {
318318
})
319319

320320
test('form should be clean after setting data and then setting the defaults', async ({ page }) => {
321-
test.skip(process.env.PACKAGE === 'svelte', 'Skipping Svelte for now')
321+
test.skip(process.env.PACKAGE === 'svelte' || process.env.PACKAGE === 'svelte5', 'Skipping Svelte for now')
322322

323323
await expect(page.getByText('Form is clean')).toBeVisible()
324324
await page.getByRole('button', { name: 'Data and Defaults' }).click()

tests/manual-visits.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('visits a different page', async ({ page }) => {
1717
})
1818

1919
test('can make a location visit', async ({ page }) => {
20-
test.skip(process.env.PACKAGE === 'svelte', 'Skipping for now until we diagnose')
20+
test.skip(process.env.PACKAGE === 'svelte' || process.env.PACKAGE === 'svelte5', 'Skipping for now until we diagnose')
2121

2222
pageLoads.watch(page, 2)
2323
await page.goto('/visits/location')

0 commit comments

Comments
 (0)