Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Apr 23, 2024
1 parent 30cf82a commit 9326531
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/astro/e2e/view-transitions.test.js
Expand Up @@ -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');
Expand Down

0 comments on commit 9326531

Please sign in to comment.