middleware fix wip
This commit is contained in:
@@ -88,7 +88,10 @@ test.describe('Website Pages - TypeORM Integration', () => {
|
||||
{
|
||||
const auth = await WebsiteAuthManager.createAuthContext(browser, request, 'auth');
|
||||
await auth.page.goto(`${WEBSITE_BASE_URL}${path}`);
|
||||
expect(auth.page.url().includes('login')).toBeTruthy();
|
||||
const finalUrl = auth.page.url();
|
||||
console.log(`[DEBUG] Final URL: ${finalUrl}`);
|
||||
console.log(`[DEBUG] Includes 'login': ${finalUrl.includes('login')}`);
|
||||
expect(finalUrl.includes('login')).toBeTruthy();
|
||||
await auth.context.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user