diff --git a/pages-e2e/features/appServerActions/server-actions.test.ts b/pages-e2e/features/appServerActions/server-actions.test.ts index c2273c97c..0d48a5f40 100644 --- a/pages-e2e/features/appServerActions/server-actions.test.ts +++ b/pages-e2e/features/appServerActions/server-actions.test.ts @@ -2,42 +2,33 @@ import { describe, test } from 'vitest'; import { getAssertVisible } from '@features-utils/getAssertVisible'; describe('server-actions', () => { - test( - 'simple forms using a local KV binding can read and write a value', - async () => { - const page = await BROWSER.newPage(); - const assertVisible = getAssertVisible(page); - - await page.goto(`${DEPLOYMENT_URL}/server-actions/simple-kv-form`); - - await assertVisible('h1', { - hasText: 'Server Actions - Simple KV Form', - }); - - // let's always clear the value in case it is already set - // (for example if this run is a retry run) - const clearBtn = await assertVisible( - 'button[data-test-id="clear-value"]', - ); - await clearBtn.click(); - - await assertVisible('[data-test-id="kv-value-info"]', { - hasText: 'No value is set for the key', - }); - - const input = await assertVisible('[data-test-id="form-input"]'); - await input.type('This is a test value!'); - - const submitBtn = await assertVisible( - 'button[data-test-id="form-submit"]', - ); - await submitBtn.click(); - - await assertVisible('[data-test-id="kv-value-info"]', { - hasText: `The key's value is "This is a test value!"`, - }); - // Note: in CI this test is taking longer than expected, so let's temporarily increase the timeout - }, - { timeout: 15_000 }, - ); + test('simple forms using a local KV binding can read and write a value', async () => { + const page = await BROWSER.newPage(); + const assertVisible = getAssertVisible(page); + + await page.goto(`${DEPLOYMENT_URL}/server-actions/simple-kv-form`); + + await assertVisible('h1', { + hasText: 'Server Actions - Simple KV Form', + }); + + // let's always clear the value in case it is already set + // (for example if this run is a retry run) + const clearBtn = await assertVisible('button[data-test-id="clear-value"]'); + await clearBtn.click(); + + await assertVisible('[data-test-id="kv-value-info"]', { + hasText: 'No value is set for the key', + }); + + const input = await assertVisible('[data-test-id="form-input"]'); + await input.type('This is a test value!'); + + const submitBtn = await assertVisible('button[data-test-id="form-submit"]'); + await submitBtn.click(); + + await assertVisible('[data-test-id="kv-value-info"]', { + hasText: `The key's value is "This is a test value!"`, + }); + }); });