Commit a04cdb05 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Updated summary data fixture

Skips the deployment step when generating the
summary data fixture, this is handy so we can
test that the 0 value is correctly displayed
as a `-` in the UI.

Fixes the broken jest test
parent ad2c9e65
......@@ -171,7 +171,7 @@ describe('Cycle analytics mutations', () => {
it('will set each summary item with a value of 0 to "-"', () => {
expect(state.summary).toEqual([
{ value: '-', title: 'New Issues' },
{ value: 3, title: 'New Issues' },
{ value: '-', title: 'Deploys' },
]);
});
......
......@@ -42,7 +42,9 @@ describe 'Analytics (JavaScript fixtures)', :sidekiq_inline do
create_merge_request_closing_issue(user, project, issue_1)
create_merge_request_closing_issue(user, project, issue_2)
merge_merge_requests_closing_issue(user, project, issue_3)
end
def create_deployment
deploy_master(user, project, environment: 'staging')
deploy_master(user, project)
end
......@@ -93,6 +95,7 @@ describe 'Analytics (JavaScript fixtures)', :sidekiq_inline do
stub_licensed_features(cycle_analytics_for_groups: true)
prepare_cycle_analytics_data
create_deployment
sign_in(user)
end
......@@ -113,6 +116,7 @@ describe 'Analytics (JavaScript fixtures)', :sidekiq_inline do
stub_licensed_features(cycle_analytics_for_groups: true)
prepare_cycle_analytics_data
create_deployment
sign_in(user)
end
......@@ -142,6 +146,7 @@ describe 'Analytics (JavaScript fixtures)', :sidekiq_inline do
end
prepare_cycle_analytics_data
create_deployment
additional_cycle_analytics_metrics
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment