feat: add ability to define expiration of one time link

This commit is contained in:
Elias Schneider
2024-10-31 17:22:58 +01:00
parent 590cb02f6c
commit 2ccabf835c
4 changed files with 79 additions and 29 deletions

View File

@@ -57,8 +57,13 @@ test('Create one time access token', async ({ page }) => {
.getByRole('row', { name: `${users.craig.firstname} ${users.craig.lastname}` })
.getByRole('button')
.click();
await page.getByRole('menuitem', { name: 'One-time link' }).click();
await page.getByLabel('One Time Link').getByRole('combobox').click();
await page.getByRole('option', { name: '12 hours' }).click();
await page.getByRole('button', { name: 'Generate Link' }).click();
await expect(page.getByRole('textbox', { name: 'One Time Link' })).toHaveValue(
/http:\/\/localhost\/login\/.*/
);