Tracker: hide inbox / views (#2224)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
Sergei Ogorelkov 2022-07-07 16:47:06 +07:00 committed by GitHub
parent ef8f7f3197
commit 6429908b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 14 deletions

View File

@ -456,13 +456,13 @@ export function createModel (builder: Builder): void {
locationResolver: tracker.resolver.Location, locationResolver: tracker.resolver.Location,
navigatorModel: { navigatorModel: {
specials: [ specials: [
{ // {
id: 'inbox', // id: 'inbox',
position: 'top', // position: 'top',
label: tracker.string.Inbox, // label: tracker.string.Inbox,
icon: tracker.icon.Inbox, // icon: tracker.icon.Inbox,
component: tracker.component.Inbox // component: tracker.component.Inbox
}, // },
{ {
id: 'my-issues', id: 'my-issues',
position: 'top', position: 'top',
@ -470,13 +470,13 @@ export function createModel (builder: Builder): void {
icon: tracker.icon.MyIssues, icon: tracker.icon.MyIssues,
component: tracker.component.MyIssues component: tracker.component.MyIssues
}, },
{ // {
id: 'views', // id: 'views',
position: 'top', // position: 'top',
label: tracker.string.Views, // label: tracker.string.Views,
icon: tracker.icon.Views, // icon: tracker.icon.Views,
component: tracker.component.Views // component: tracker.component.Views
}, // },
{ {
id: 'roadmap', id: 'roadmap',
position: 'top', position: 'top',

View File

@ -199,6 +199,7 @@ test('my-issues', async ({ page }) => {
await openIssue(page, name) await openIssue(page, name)
// click "Don't track" // click "Don't track"
await page.click('.popupPanel-title :nth-child(3) >> button >> nth=1') await page.click('.popupPanel-title :nth-child(3) >> button >> nth=1')
await page.waitForTimeout(100)
await page.keyboard.press('Escape') await page.keyboard.press('Escape')
await expect(page.locator('.antiPanel-component')).not.toContainText(name) await expect(page.locator('.antiPanel-component')).not.toContainText(name)
}) })