Skip to content

Commit

Permalink
Add E2E test that Azure function can be called
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich committed Nov 20, 2023
1 parent 5d6f154 commit 5d0c714
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ test('submits sverdle guess', async ({ page }) => {
await expect(input).toHaveValue('a');
await expect(input).toBeDisabled();
});

test('can call custom API azure function', async ({ request }) => {
const response = await request.post('/api/HelloWorld', {
data: {
name: 'Geoff'
}
});
expect(response.ok()).toBeTruthy();
});

0 comments on commit 5d0c714

Please sign in to comment.