mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
30cf82ac3e
commit
9326531333
1 changed files with 10 additions and 5 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue