F: Enable compression for backend responses

This commit is contained in:
Ivan 2025-03-20 14:55:43 +03:00
parent 341db80e68
commit 7adbaed116
4 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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}

View File

@ -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(

View File

@ -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();