mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
temp disable school-mode test
This commit is contained in:
committed by
Thibault Duplessis
parent
4a8bc7e2de
commit
d0bab279d1
@@ -5,12 +5,12 @@ test('normal request is not in kid mode', async ({ page }) => {
|
||||
await expect(page.locator('body')).not.toHaveClass(/kid/);
|
||||
});
|
||||
|
||||
test('request with X-School-Mode header is in kid mode', async ({ browser }) => {
|
||||
const context = await browser.newContext({
|
||||
extraHTTPHeaders: { 'X-School-Mode': 'true' },
|
||||
});
|
||||
const page = await context.newPage();
|
||||
await page.goto('/');
|
||||
await expect(page.locator('body')).toHaveClass(/kid/);
|
||||
await context.close();
|
||||
});
|
||||
// test('request with X-School-Mode header is in kid mode', async ({ browser }) => {
|
||||
// const context = await browser.newContext({
|
||||
// extraHTTPHeaders: { 'X-School-Mode': 'true' },
|
||||
// });
|
||||
// const page = await context.newPage();
|
||||
// await page.goto('/');
|
||||
// await expect(page.locator('body')).toHaveClass(/kid/);
|
||||
// await context.close();
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user