From 6429908b73e5eefc06b78a7f68d7d2fe3e6a75bb Mon Sep 17 00:00:00 2001 From: Sergei Ogorelkov Date: Thu, 7 Jul 2022 16:47:06 +0700 Subject: [PATCH] Tracker: hide inbox / views (#2224) Signed-off-by: Sergei Ogorelkov --- models/tracker/src/index.ts | 28 ++++++++++++++-------------- tests/sanity/tests/tracker.spec.ts | 1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 9d2c632028..c5a17abbd7 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -456,13 +456,13 @@ export function createModel (builder: Builder): void { locationResolver: tracker.resolver.Location, navigatorModel: { specials: [ - { - id: 'inbox', - position: 'top', - label: tracker.string.Inbox, - icon: tracker.icon.Inbox, - component: tracker.component.Inbox - }, + // { + // id: 'inbox', + // position: 'top', + // label: tracker.string.Inbox, + // icon: tracker.icon.Inbox, + // component: tracker.component.Inbox + // }, { id: 'my-issues', position: 'top', @@ -470,13 +470,13 @@ export function createModel (builder: Builder): void { icon: tracker.icon.MyIssues, component: tracker.component.MyIssues }, - { - id: 'views', - position: 'top', - label: tracker.string.Views, - icon: tracker.icon.Views, - component: tracker.component.Views - }, + // { + // id: 'views', + // position: 'top', + // label: tracker.string.Views, + // icon: tracker.icon.Views, + // component: tracker.component.Views + // }, { id: 'roadmap', position: 'top', diff --git a/tests/sanity/tests/tracker.spec.ts b/tests/sanity/tests/tracker.spec.ts index 3daad4c040..0145d7eed1 100644 --- a/tests/sanity/tests/tracker.spec.ts +++ b/tests/sanity/tests/tracker.spec.ts @@ -199,6 +199,7 @@ test('my-issues', async ({ page }) => { await openIssue(page, name) // click "Don't track" await page.click('.popupPanel-title :nth-child(3) >> button >> nth=1') + await page.waitForTimeout(100) await page.keyboard.press('Escape') await expect(page.locator('.antiPanel-component')).not.toContainText(name) })