12345678910111213141516171819202122232425262728 |
- import {OrganizationFixture} from 'sentry-fixture/organization';
- import {getTabs} from './utils';
- describe('getTabs', () => {
- it('displays the correct list of tabs', () => {
- expect(getTabs(OrganizationFixture({})).filter(tab => !tab[1].hidden)).toEqual([
- ['is:unresolved', expect.objectContaining({name: 'Unresolved'})],
- [
- 'is:unresolved is:for_review assigned_or_suggested:[me, my_teams, none]',
- expect.objectContaining({name: 'For Review'}),
- ],
- ['is:regressed', expect.objectContaining({name: 'Regressed'})],
- ['is:escalating', expect.objectContaining({name: 'Escalating'})],
- ['is:archived', expect.objectContaining({name: 'Archived'})],
- ['is:reprocessing', expect.objectContaining({name: 'Reprocessing'})],
- ]);
- });
- it('should replace "unresolved" with "prioritized" for issue-priority-ui feature', () => {
- const tabs = getTabs(OrganizationFixture({features: ['issue-priority-ui']}));
- expect(tabs[0]).toEqual([
- 'is:unresolved issue.priority:[high, medium]',
- expect.objectContaining({name: 'Prioritized'}),
- ]);
- });
- });
|