summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpereira2 <rpereira@gitlab.com>2019-06-07 23:02:30 +0530
committerrpereira2 <rpereira@gitlab.com>2019-06-07 23:35:25 +0530
commit6c2fa2375c94e80fd225dc97f410c9b0b8663c2f (patch)
tree75dd37ca319fb13b4dc4b48e86f0a62485fcadf6
parentc2f0b25f8c2501ae8d1bcf23b79949057440a8ae (diff)
downloadgitlab-ce-6c2fa2375c94e80fd225dc97f410c9b0b8663c2f.tar.gz
Remove feature flag spec that is no longer needed
-rw-r--r--spec/javascripts/monitoring/dashboard_spec.js57
1 files changed, 16 insertions, 41 deletions
diff --git a/spec/javascripts/monitoring/dashboard_spec.js b/spec/javascripts/monitoring/dashboard_spec.js
index 8a0f03696a5..adf8e7a837d 100644
--- a/spec/javascripts/monitoring/dashboard_spec.js
+++ b/spec/javascripts/monitoring/dashboard_spec.js
@@ -381,51 +381,26 @@ describe('Dashboard', () => {
describe('external dashboard link', () => {
beforeEach(() => {
mock.onGet(mockApiEndpoint).reply(200, metricsGroupsAPIResponse);
- });
-
- describe('with feature flag enabled', () => {
- beforeEach(() => {
- component = new DashboardComponent({
- el: document.querySelector('.prometheus-graphs'),
- propsData: {
- ...propsData,
- hasMetrics: true,
- showPanels: false,
- externalDashboardUrl: '/mockUrl',
- },
- store,
- });
- });
- it('shows the link', done => {
- setTimeout(() => {
- expect(component.$el.querySelector('.js-external-dashboard-link').innerText).toContain(
- 'View full dashboard',
- );
- done();
- });
+ component = new DashboardComponent({
+ el: document.querySelector('.prometheus-graphs'),
+ propsData: {
+ ...propsData,
+ hasMetrics: true,
+ showPanels: false,
+ showTimeWindowDropdown: false,
+ externalDashboardUrl: '/mockUrl',
+ },
+ store,
});
});
- describe('without feature flage enabled', () => {
- beforeEach(() => {
- component = new DashboardComponent({
- el: document.querySelector('.prometheus-graphs'),
- propsData: {
- ...propsData,
- hasMetrics: true,
- showPanels: false,
- externalDashboardUrl: '',
- },
- store,
- });
- });
-
- it('does not show the link', done => {
- setTimeout(() => {
- expect(component.$el.querySelector('.js-external-dashboard-link')).toBe(null);
- done();
- });
+ it('shows the link', done => {
+ setTimeout(() => {
+ expect(component.$el.querySelector('.js-external-dashboard-link').innerText).toContain(
+ 'View full dashboard',
+ );
+ done();
});
});
});