|
@@ -4,7 +4,7 @@ import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary';
|
|
import GroupTags from 'sentry/views/issueDetails/groupTags';
|
|
import GroupTags from 'sentry/views/issueDetails/groupTags';
|
|
|
|
|
|
describe('GroupTags', function () {
|
|
describe('GroupTags', function () {
|
|
- const {routerContext, router, organization} = initializeOrg();
|
|
|
|
|
|
+ const {routerProps, routerContext, router, organization} = initializeOrg();
|
|
const group = TestStubs.Group();
|
|
const group = TestStubs.Group();
|
|
let tagsMock;
|
|
let tagsMock;
|
|
beforeEach(function () {
|
|
beforeEach(function () {
|
|
@@ -17,9 +17,9 @@ describe('GroupTags', function () {
|
|
it('navigates to issue details events tab with correct query params', async function () {
|
|
it('navigates to issue details events tab with correct query params', async function () {
|
|
render(
|
|
render(
|
|
<GroupTags
|
|
<GroupTags
|
|
|
|
+ {...routerProps}
|
|
group={group}
|
|
group={group}
|
|
environments={['dev']}
|
|
environments={['dev']}
|
|
- location={{}}
|
|
|
|
baseUrl={`/organizations/${organization.slug}/issues/${group.id}/`}
|
|
baseUrl={`/organizations/${organization.slug}/issues/${group.id}/`}
|
|
/>,
|
|
/>,
|
|
{context: routerContext, organization}
|
|
{context: routerContext, organization}
|