tests: fix e2e tests

This commit is contained in:
Elias Schneider
2025-06-27 23:52:43 +02:00
parent b5b01cb6dd
commit 4b829757b2
2 changed files with 16 additions and 0 deletions

View File

@@ -189,6 +189,19 @@ test('Refresh token fails when used for the wrong client', async ({ request }) =
})
.then((r) => r.text());
// Perform the exchange
const refreshResponse = await request.post('/api/oidc/token', {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
form: {
grant_type: 'refresh_token',
client_id: clientId,
refresh_token: refreshToken,
client_secret: clientSecret
}
});
expect(refreshResponse.status()).toBe(400);
});

View File

@@ -160,6 +160,9 @@ test.describe('User Signup', () => {
await page.getByRole('button', { name: 'Skip for now' }).click();
await expect(page.getByText('Skip Passkey Setup')).toBeVisible();
await page.getByRole('button', { name: 'Skip for now' }).nth(1).click();
await page.waitForURL('/settings/account');
await expect(page.getByText('Passkey missing')).toBeVisible();
});