Merge branch 'feat/v2-stack-e2e-fix-mobile' into feat/v2-stack-e2e-fix-assistant
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -82,9 +82,9 @@ describe("Board advanced interactions", () => {
|
|||||||
await compactSurface.evaluate((element) => {
|
await compactSurface.evaluate((element) => {
|
||||||
element.setAttribute("data-lifecycle-probe", "same-instance");
|
element.setAttribute("data-lifecycle-probe", "same-instance");
|
||||||
});
|
});
|
||||||
|
await widget.hover();
|
||||||
await widget.focus();
|
await widget.focus();
|
||||||
await page.keyboard.down("Shift");
|
await page.keyboard.down("Shift");
|
||||||
await widget.hover();
|
|
||||||
await expect(previewSurface).toBeVisible({ timeout: 2_000 });
|
await expect(previewSurface).toBeVisible({ timeout: 2_000 });
|
||||||
await expect(previewSurface).toHaveCSS("animation-name", "none");
|
await expect(previewSurface).toHaveCSS("animation-name", "none");
|
||||||
const compactBounds = await widget.boundingBox();
|
const compactBounds = await widget.boundingBox();
|
||||||
|
|||||||
@@ -50,14 +50,14 @@ export default function ClockWidget({ options, width, height, displayMode }: Wid
|
|||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
<Title className="clock-time-text" fw={700} order={sizing === "md" ? 2 : sizing === "sm" ? 4 : 6} lh="1">
|
<Title className="clock-time-text" fw={700} order={sizing === "md" ? 2 : sizing === "sm" ? 4 : 6} lh="1">
|
||||||
<time dateTime={dayjs(time).tz(timezone).toISOString()}>
|
<time dateTime={dayjs(time).tz(timezone).toISOString()} suppressHydrationWarning>
|
||||||
{options.customTimeFormat
|
{options.customTimeFormat
|
||||||
? dayjs(time).tz(timezone).format(customTimeFormat)
|
? dayjs(time).tz(timezone).format(customTimeFormat)
|
||||||
: dayjs(time).tz(timezone).format(timeFormat)}
|
: dayjs(time).tz(timezone).format(timeFormat)}
|
||||||
</time>
|
</time>
|
||||||
</Title>
|
</Title>
|
||||||
{options.showDate && (
|
{options.showDate && (
|
||||||
<Text className="clock-date-text" size={sizing} lineClamp={1}>
|
<Text className="clock-date-text" size={sizing} lineClamp={1} suppressHydrationWarning>
|
||||||
{options.customDateFormat
|
{options.customDateFormat
|
||||||
? dayjs(time).tz(timezone).format(customDateFormat)
|
? dayjs(time).tz(timezone).format(customDateFormat)
|
||||||
: dayjs(time).tz(timezone).format(dateFormat)}
|
: dayjs(time).tz(timezone).format(dateFormat)}
|
||||||
|
|||||||
Reference in new issue
Block a user