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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-22 00:08:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-22 00:08:33 +0300
commitee04416cd44b73dbb5588952cf3989c167104569 (patch)
tree24bb8d3d822cef6f67a0ae8b35ad5fd1950a78be /spec/frontend
parent6f03d13ddbc2ac2f18517ce2c8b838f89a774c7c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r--spec/frontend/environments/environment_item_spec.js11
-rw-r--r--spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js6
2 files changed, 15 insertions, 2 deletions
diff --git a/spec/frontend/environments/environment_item_spec.js b/spec/frontend/environments/environment_item_spec.js
index 09ab1223fd1..62806c9e44c 100644
--- a/spec/frontend/environments/environment_item_spec.js
+++ b/spec/frontend/environments/environment_item_spec.js
@@ -285,6 +285,17 @@ describe('Environment item', () => {
it('should not render the "Upcoming deployment" column', () => {
expect(findUpcomingDeployment().exists()).toBe(false);
});
+
+ it('should set the name cell to be full width', () => {
+ expect(wrapper.find('[data-testid="environment-name-cell"]').classes('section-100')).toBe(
+ true,
+ );
+ });
+
+ it('should hide non-folder properties', () => {
+ expect(wrapper.find('[data-testid="environment-deployment-id-cell"]').exists()).toBe(false);
+ expect(wrapper.find('[data-testid="environment-build-cell"]').exists()).toBe(false);
+ });
});
describe('When environment can be deleted', () => {
diff --git a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
index 8d58854b013..f5e5ab4a984 100644
--- a/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
+++ b/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
@@ -451,8 +451,9 @@ describe('SidebarDropdownWidget', () => {
expect(projectMilestonesSpy).toHaveBeenNthCalledWith(1, {
fullPath: mockIssue.projectPath,
- title: '',
+ sort: null,
state: 'active',
+ title: '',
});
});
@@ -477,8 +478,9 @@ describe('SidebarDropdownWidget', () => {
expect(projectMilestonesSpy).toHaveBeenNthCalledWith(2, {
fullPath: mockIssue.projectPath,
- title: mockSearchTerm,
+ sort: null,
state: 'active',
+ title: mockSearchTerm,
});
});
});