1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

[CL-524] Ignore flaky elements in Chromatic tests (#12561)

This commit is contained in:
Victoria League
2024-12-30 16:42:53 -05:00
committed by GitHub
parent 6539f06654
commit a95427eee0
4 changed files with 14 additions and 5 deletions

View File

@@ -10,9 +10,9 @@ import { TableDataSource, TableModule } from "../../../table";
selector: "dialog-virtual-scroll-block",
standalone: true,
imports: [DialogModule, IconButtonModule, SectionComponent, TableModule, ScrollingModule],
template: ` <bit-section>
template: /*html*/ `<bit-section>
<cdk-virtual-scroll-viewport scrollWindow itemSize="47">
<bit-table [dataSource]="dataSource">
<bit-table [dataSource]="dataSource" data-chromatic="ignore">
<ng-container header>
<tr>
<th bitCell bitSortable="id" default>Id</th>

View File

@@ -130,6 +130,9 @@ export const MenuOpen: Story = {
const menuButton = getAllByRole(table, "button")[0];
await userEvent.click(menuButton);
},
parameters: {
chromatic: { ignoreSelectors: [".bit-menu-panel-backdrop"] },
},
};
export const DefaultDialogOpen: Story = {