Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/parity/e2e/topbar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { expect, test, type Locator } from '@playwright/test';
import { openStory } from './story.ts';

/** What sets two triggers in a bar apart: size, border and a ring (box-shadow) */
/** What sets two triggers in a bar apart: size, border and a ring (box-shadow) – once the hover transition is done */
const look = (element: Locator) =>
element.evaluate((node) => {
element.evaluate(async (node) => {
// transition-colors runs also with reduced motion: a value read in between differs from run to run
await Promise.all(node.getAnimations().map((animation) => animation.finished));
const style = getComputedStyle(node);
return {
size: `${style.width} × ${style.height}`,
Expand Down
Loading