This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / webapp / e2e / auth-redirect.spec.ts
810 B 26 lines
1import { test, expect } from '@playwright/test'; 2 3test('unauthenticated /settings visit redirects to /login', async ({ 4 page, 5}) => { 6 const response = await page.goto('/settings'); 7 console.log('status:', response?.status(), 'final url:', page.url()); 8 9 await expect(page).toHaveURL('/login'); 10}); 11 12test('unauthenticated /notifications visit redirects to /login', async ({ 13 page, 14}) => { 15 const response = await page.goto('/notifications'); 16 console.log('status:', response?.status(), 'final url:', page.url()); 17 18 await expect(page).toHaveURL('/login'); 19}); 20 21test('unauthenticated /home visit redirects to /login', async ({ page }) => { 22 const response = await page.goto('/home'); 23 console.log('status:', response?.status(), 'final url:', page.url()); 24 25 await expect(page).toHaveURL('/login'); 26});