mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-10 23:25:52 +00:00
Fix tests
This commit is contained in:
@@ -92,6 +92,12 @@ export async function expectWithin(
|
|||||||
outer: Locator,
|
outer: Locator,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
await expect(inner).toBeVisible();
|
await expect(inner).toBeVisible();
|
||||||
|
// Wait for animations to settle.
|
||||||
|
await inner.evaluate(async (element) => {
|
||||||
|
for (const animation of element.getAnimations({ subtree: true }))
|
||||||
|
await animation.finished;
|
||||||
|
});
|
||||||
|
|
||||||
const innerBox = await inner.boundingBox();
|
const innerBox = await inner.boundingBox();
|
||||||
const outerBox = await outer.boundingBox();
|
const outerBox = await outer.boundingBox();
|
||||||
if (innerBox === null || outerBox === null)
|
if (innerBox === null || outerBox === null)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ div.reactionPopupMenuRoot.reactionPopupMenuModal > div > div {
|
|||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reactionButton {
|
.reactionPopupMenu .reactionsMenu .reactionButton {
|
||||||
padding: var(--reaction-button-padding);
|
padding: var(--reaction-button-padding);
|
||||||
border-radius: var(--cpd-radius-pill-effect);
|
border-radius: var(--cpd-radius-pill-effect);
|
||||||
font-size: var(--reaction-button-fontsize);
|
font-size: var(--reaction-button-fontsize);
|
||||||
|
|||||||
Reference in New Issue
Block a user