2.21.12 (#423)
* chore: bump version to 2.21.12 and implement safe redirect path validation - Updated application version from 2.21.11 to 2.21.12 in package.json. - Introduced `getSafeRedirectPath` and `isSafeRedirectPath` utility functions to validate user-supplied redirect URLs, enhancing security against open redirect attacks. * fix: address page reload issue in Admin tests for CI
This commit is contained in:
committed by
GitHub
parent
2f78e16dfa
commit
44137016cb
@@ -103,6 +103,9 @@ test.describe('Admin', () => {
|
||||
),
|
||||
]);
|
||||
|
||||
// TODO: find out why we need to reload the page only in CI
|
||||
await page.reload();
|
||||
|
||||
await expect(page.getByText('Banned').first()).toBeVisible();
|
||||
|
||||
await page.context().clearCookies();
|
||||
@@ -149,7 +152,8 @@ test.describe('Admin', () => {
|
||||
),
|
||||
]);
|
||||
|
||||
await page.waitForTimeout(250);
|
||||
// TODO: find out why we need to reload the page only in CI
|
||||
await page.reload();
|
||||
|
||||
// Verify ban badge is removed
|
||||
await expect(page.getByText('Banned')).not.toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user