F: Enable compression for backend responses
This commit is contained in:
parent
341db80e68
commit
7adbaed116
|
@ -112,6 +112,7 @@ if _domain != '':
|
||||||
|
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
'django.middleware.gzip.GZipMiddleware',
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'corsheaders.middleware.CorsMiddleware',
|
'corsheaders.middleware.CorsMiddleware',
|
||||||
|
|
|
@ -15,7 +15,7 @@ export function NavigationButton({ icon, title, hideTitle, className, style, onC
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
tabIndex={1}
|
tabIndex={0}
|
||||||
aria-label={title}
|
aria-label={title}
|
||||||
data-tooltip-id={!!title ? globalIDs.tooltip : undefined}
|
data-tooltip-id={!!title ? globalIDs.tooltip : undefined}
|
||||||
data-tooltip-hidden={hideTitle}
|
data-tooltip-hidden={hideTitle}
|
||||||
|
|
|
@ -41,7 +41,6 @@ export function ValueIcon({
|
||||||
onClick,
|
onClick,
|
||||||
...restProps
|
...restProps
|
||||||
}: ValueIconProps) {
|
}: ValueIconProps) {
|
||||||
// TODO: do not add button if onClick is disabled
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
|
|
@ -31,7 +31,7 @@ test('logout procedure and consequence', async ({ page }) => {
|
||||||
await page.goto('/');
|
await page.goto('/');
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'Пользователь' }).click();
|
await page.getByRole('button', { name: 'Пользователь' }).click();
|
||||||
await page.getByRole('button', { name: 'Выйти' }).click();
|
await page.getByRole('button', { name: 'Выход из приложения' }).click();
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'Перейти на страницу логина' }).click();
|
await page.getByRole('button', { name: 'Перейти на страницу логина' }).click();
|
||||||
await expect(page.getByRole('button', { name: 'Войти' })).toBeVisible();
|
await expect(page.getByRole('button', { name: 'Войти' })).toBeVisible();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user