0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -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']);
});
test('form POST that includes an input with name action should not override action', async ({ page, astro }) => {
test('form POST that includes an input with name action should not override action', async ({
page,
astro,
}) => {
await page.goto(astro.resolveUrl('/form-six'));
page.on('request', (request) => {
expect(request.url()).toContain('/bar')
expect(request.url()).toContain('/bar');
});
// Submit the form
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'));
page.on('request', (request) => {
expect(request.method()).toBe('GET')
expect(request.method()).toBe('GET');
});
// Submit the form
await page.click('#submit');