Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/monitoring/components/dashboard_spec.js')
-rw-r--r--spec/frontend/monitoring/components/dashboard_spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/monitoring/components/dashboard_spec.js b/spec/frontend/monitoring/components/dashboard_spec.js
index 608404e5c5b..1de6b6e3e98 100644
--- a/spec/frontend/monitoring/components/dashboard_spec.js
+++ b/spec/frontend/monitoring/components/dashboard_spec.js
@@ -407,7 +407,7 @@ describe('Dashboard', () => {
await nextTick();
});
- it('it does not show loading icons in any group', async () => {
+ it('does not show loading icons in any group', async () => {
setupStoreWithData(store);
await nextTick();
@@ -614,11 +614,11 @@ describe('Dashboard', () => {
const findFirstDraggableRemoveButton = () =>
findDraggablePanels().at(0).find('.js-draggable-remove');
- it('it enables draggables', async () => {
+ it('enables draggables', async () => {
findRearrangeButton().vm.$emit('click');
await nextTick();
- expect(findRearrangeButton().attributes('pressed')).toBeTruthy();
+ expect(findRearrangeButton().attributes('pressed')).toBe('true');
expect(findEnabledDraggables().wrappers).toEqual(findDraggables().wrappers);
});
@@ -656,13 +656,13 @@ describe('Dashboard', () => {
expect(findDraggablePanels().length).toEqual(metricsDashboardPanelCount - 1);
});
- it('it disables draggables when clicked again', async () => {
+ it('disables draggables when clicked again', async () => {
findRearrangeButton().vm.$emit('click');
await nextTick();
findRearrangeButton().vm.$emit('click');
await nextTick();
- expect(findRearrangeButton().attributes('pressed')).toBeFalsy();
+ expect(findRearrangeButton().attributes('pressed')).toBeUndefined();
expect(findEnabledDraggables().length).toBe(0);
});
});