From 149aed9e34a3f4ceb58d405f3b61c522fd42c5d0 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 8 Feb 2022 23:54:57 +0700 Subject: [PATCH] Few fixes (#976) Signed-off-by: Andrey Sobolev --- packages/ui/src/components/Loading.svelte | 3 ++- plugins/workbench-resources/src/components/Workbench.svelte | 3 ++- tests/sanity/tests/contacts.spec.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/components/Loading.svelte b/packages/ui/src/components/Loading.svelte index b6ddabc326..b9ffe95d60 100644 --- a/packages/ui/src/components/Loading.svelte +++ b/packages/ui/src/components/Loading.svelte @@ -39,10 +39,11 @@ .spinner-container .inner { margin: auto; - opacity: 0.5; + opacity: 0; animation-name: makeVisible; animation-duration: 0.25s; animation-delay: 0.1s; + animation-fill-mode: forwards; } diff --git a/plugins/workbench-resources/src/components/Workbench.svelte b/plugins/workbench-resources/src/components/Workbench.svelte index ead8c9aef7..d721570ad5 100644 --- a/plugins/workbench-resources/src/components/Workbench.svelte +++ b/plugins/workbench-resources/src/components/Workbench.svelte @@ -169,7 +169,7 @@ let isNavigate: boolean = false $: isNavigate = !!navigatorModel - function navigateApp (app: Application) { + function navigateApp (app: Application): void { if (currentApp === app._id) { // Nothing to do. return @@ -179,6 +179,7 @@ navigatorModel = currentApplication?.navigatorModel currentSpace = undefined + specialComponent = undefined currentSpecial = undefined currentView = undefined createItemDialog = undefined diff --git a/tests/sanity/tests/contacts.spec.ts b/tests/sanity/tests/contacts.spec.ts index 18ac7f1c27..104cd4ecc6 100644 --- a/tests/sanity/tests/contacts.spec.ts +++ b/tests/sanity/tests/contacts.spec.ts @@ -28,11 +28,11 @@ test.describe('contact tests', () => { await page.locator('[id="app-contact\\:string\\:Contacts"]').click() - await expect(page.locator('text=Elton John')).toBeVisible() + await expect(page.locator('text=Marina M.')).toBeVisible() expect(await page.locator('.tr-body').count()).toBeGreaterThan(5) const searchBox = page.locator('[placeholder="Search"]') - await searchBox.fill('Elton') + await searchBox.fill('Marina') await searchBox.press('Enter') await expect(page.locator('.tr-body')).toHaveCount(1)