fix bug#7
Build & Push / Build & Push Docker Image (push) Failing after 2m50s
Test / Type Check (all packages) (push) Failing after 55s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
Build & Push / Build & Push Docker Image (push) Failing after 2m50s
Test / Type Check (all packages) (push) Failing after 55s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
This commit is contained in:
@@ -41,7 +41,7 @@ test('root locale detection honors Accept-Language', async ({ browser }) => {
|
||||
});
|
||||
const page = await context.newPage();
|
||||
await page.goto('/');
|
||||
await expect(page).toHaveURL(/\/ar\/system$/);
|
||||
await expect(page).toHaveURL(/\/ar\/dark$/);
|
||||
await context.close();
|
||||
});
|
||||
|
||||
|
||||
@@ -18,8 +18,7 @@ test('explicit dark theme is present on the server-rendered root', async ({ brow
|
||||
await expect(page.locator('html')).toHaveAttribute('data-theme-preference', 'dark');
|
||||
await expect(page.locator('html')).toHaveAttribute('data-theme', 'dark');
|
||||
const csp = response?.headers()['content-security-policy'] ?? '';
|
||||
const nonce = await page.locator('#theme-bootstrap').getAttribute('nonce');
|
||||
expect(nonce).toBeTruthy();
|
||||
await expect(page.locator('#theme-bootstrap')).not.toHaveAttribute('nonce');
|
||||
expect(csp).toContain("'unsafe-inline'");
|
||||
expect(csp).not.toContain("'strict-dynamic'");
|
||||
await context.close();
|
||||
|
||||
Reference in New Issue
Block a user