diff --git a/plugins/presence-resources/src/components/PresenceAvatars.svelte b/plugins/presence-resources/src/components/PresenceAvatars.svelte index e5b2704d8a7..65bd25d1a54 100644 --- a/plugins/presence-resources/src/components/PresenceAvatars.svelte +++ b/plugins/presence-resources/src/components/PresenceAvatars.svelte @@ -18,7 +18,7 @@ import { type Person, formatName } from '@hcengineering/contact' import { Avatar, personByIdStore } from '@hcengineering/contact-resources' import { getEmbeddedLabel } from '@hcengineering/platform' - import { IconSize, tooltip } from '@hcengineering/ui' + import { IconSize, tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui' import PresenceList from './PresenceList.svelte' import { presenceByObjectId } from '../store' @@ -33,10 +33,11 @@ .map((p) => $personByIdStore.get(p)) .filter((p): p is Person => p !== undefined) $: overLimit = persons.length > limit + $: adaptive = checkAdaptiveMatching($deviceInfo.size, 'md') || overLimit {#if persons.length > 0} - {#if overLimit} + {#if adaptive}
{ await this.viewStringDeleteObjectButtonPrimary().click() + await expect(this.viewStringDeleteObjectButtonPrimary()).not.toBeVisible({ timeout: 1000 }) } async addNewTagPopup (page: Page, title: string, description: string): Promise { diff --git a/tests/sanity/tests/model/recruiting/applications-page.ts b/tests/sanity/tests/model/recruiting/applications-page.ts index 12faf8ec2fb..15737d4c16d 100644 --- a/tests/sanity/tests/model/recruiting/applications-page.ts +++ b/tests/sanity/tests/model/recruiting/applications-page.ts @@ -78,6 +78,9 @@ export class ApplicationsPage extends CommonRecruitingPage { .locator('tr', { hasText: `${talentName.lastName} ${talentName.firstName}` }) .locator('div[class*="firstCell"]') .click() + await expect( + this.page.locator('div.hulyHeader-container div.hulyHeader-titleGroup', { hasText: talentName.lastName }) + ).toBeVisible({ timeout: 1000 }) } async checkApplicationState (talentName: TalentName, done: string): Promise {