0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[ci] format

This commit is contained in:
Robert van Hoesel 2024-04-23 20:53:46 +00:00 committed by astrobot-houston
parent 30cf82ac3e
commit 9326531333

View file

@ -1168,20 +1168,25 @@ test.describe('View Transitions', () => {
).toEqual(['application/x-www-form-urlencoded']); ).toEqual(['application/x-www-form-urlencoded']);
}); });
test('form POST that includes an input with name action should not override action', async ({
test('form POST that includes an input with name action should not override action', async ({ page, astro }) => { page,
astro,
}) => {
await page.goto(astro.resolveUrl('/form-six')); await page.goto(astro.resolveUrl('/form-six'));
page.on('request', (request) => { page.on('request', (request) => {
expect(request.url()).toContain('/bar') expect(request.url()).toContain('/bar');
}); });
// Submit the form // Submit the form
await page.click('#submit'); await page.click('#submit');
}); });
test('form without method that includes an input with name method should not override default method', async ({ page, astro }) => { test('form without method that includes an input with name method should not override default method', async ({
page,
astro,
}) => {
await page.goto(astro.resolveUrl('/form-seven')); await page.goto(astro.resolveUrl('/form-seven'));
page.on('request', (request) => { page.on('request', (request) => {
expect(request.method()).toBe('GET') expect(request.method()).toBe('GET');
}); });
// Submit the form // Submit the form
await page.click('#submit'); await page.click('#submit');