1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[CL-890] fix flakey tests (#17160)

* remove animations to try and fix flakey tests

* allow some diff in tootltip story

* dedicated collapsed nav story

* remove viewports and add delay

* add back animations

* add input to disable responsive behavior

* remove responsive input. open nav on lg viewports

* create story to capture collapsed nav

* remove unused import

* more explicit user preference logic
This commit is contained in:
Bryan Cunningham
2025-11-04 15:35:23 -05:00
committed by GitHub
parent e6c2786dcc
commit 203267f53c
7 changed files with 65 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
import { CdkTrapFocus } from "@angular/cdk/a11y";
import { CommonModule } from "@angular/common";
import { Component, ElementRef, input, viewChild } from "@angular/core";
import { Component, ElementRef, inject, input, viewChild } from "@angular/core";
import { I18nPipe } from "@bitwarden/ui-common";
@@ -22,8 +22,7 @@ export class SideNavComponent {
readonly variant = input<SideNavVariant>("primary");
private readonly toggleButton = viewChild("toggleButton", { read: ElementRef });
constructor(protected sideNavService: SideNavService) {}
protected sideNavService = inject(SideNavService);
protected handleKeyDown = (event: KeyboardEvent) => {
if (event.key === "Escape") {