|
@@ -27,22 +27,22 @@ describe('Release Issues', function () {
|
|
|
});
|
|
|
|
|
|
newIssuesEndpoint = MockApiClient.addMockResponse({
|
|
|
- url: `/organizations/${props.orgId}/issues/?limit=10&query=first-release%3A1.0.0&sort=new&statsPeriod=14d`,
|
|
|
+ url: `/organizations/${props.orgId}/issues/?limit=10&query=first-release%3A1.0.0&sort=freq&statsPeriod=14d`,
|
|
|
body: [],
|
|
|
});
|
|
|
resolvedIssuesEndpoint = MockApiClient.addMockResponse({
|
|
|
url:
|
|
|
- '/organizations/org/releases/1.0.0/resolved/?limit=10&query=&sort=new&statsPeriod=14d',
|
|
|
+ '/organizations/org/releases/1.0.0/resolved/?limit=10&query=&sort=freq&statsPeriod=14d',
|
|
|
body: [],
|
|
|
});
|
|
|
unhandledIssuesEndpoint = MockApiClient.addMockResponse({
|
|
|
url:
|
|
|
- '/organizations/org/issues/?limit=10&query=release%3A1.0.0%20error.handled%3A0&sort=new&statsPeriod=14d',
|
|
|
+ '/organizations/org/issues/?limit=10&query=release%3A1.0.0%20error.handled%3A0&sort=freq&statsPeriod=14d',
|
|
|
body: [],
|
|
|
});
|
|
|
allIssuesEndpoint = MockApiClient.addMockResponse({
|
|
|
url:
|
|
|
- '/organizations/org/issues/?limit=10&query=release%3A1.0.0&sort=new&statsPeriod=14d',
|
|
|
+ '/organizations/org/issues/?limit=10&query=release%3A1.0.0&sort=freq&statsPeriod=14d',
|
|
|
body: [],
|
|
|
});
|
|
|
});
|
|
@@ -147,7 +147,7 @@ describe('Release Issues', function () {
|
|
|
expect(wrapper.find('Link[data-test-id="issues-button"]').prop('to')).toEqual({
|
|
|
pathname: '/organizations/org/issues/',
|
|
|
query: {
|
|
|
- sort: 'new',
|
|
|
+ sort: 'freq',
|
|
|
query: 'firstRelease:1.0.0',
|
|
|
cursor: undefined,
|
|
|
limit: undefined,
|
|
@@ -159,7 +159,7 @@ describe('Release Issues', function () {
|
|
|
expect(wrapper.find('Link[data-test-id="issues-button"]').prop('to')).toEqual({
|
|
|
pathname: '/organizations/org/issues/',
|
|
|
query: {
|
|
|
- sort: 'new',
|
|
|
+ sort: 'freq',
|
|
|
query: 'release:1.0.0',
|
|
|
cursor: undefined,
|
|
|
limit: undefined,
|
|
@@ -171,7 +171,7 @@ describe('Release Issues', function () {
|
|
|
expect(wrapper.find('Link[data-test-id="issues-button"]').prop('to')).toEqual({
|
|
|
pathname: '/organizations/org/issues/',
|
|
|
query: {
|
|
|
- sort: 'new',
|
|
|
+ sort: 'freq',
|
|
|
query: 'release:1.0.0 error.handled:0',
|
|
|
cursor: undefined,
|
|
|
limit: undefined,
|
|
@@ -183,7 +183,7 @@ describe('Release Issues', function () {
|
|
|
expect(wrapper.find('Link[data-test-id="issues-button"]').prop('to')).toEqual({
|
|
|
pathname: '/organizations/org/issues/',
|
|
|
query: {
|
|
|
- sort: 'new',
|
|
|
+ sort: 'freq',
|
|
|
query: 'release:1.0.0',
|
|
|
cursor: undefined,
|
|
|
limit: undefined,
|