mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -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']);
|
||||
});
|
||||
|
||||
|
||||
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');
|
||||
|
|
Loading…
Reference in a new issue