diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-13 00:18:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-13 00:18:30 +0300 |
commit | ac48f7c24110a7a1e0a0aa49fc7838ab03c28374 (patch) | |
tree | 0d323ff3b3317315241fd1c784d82bfa0577711e /spec/frontend/issues | |
parent | 6ce6d20cf0b81275bad7bf8e95cf49bd475c5c4f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/issues')
7 files changed, 9 insertions, 9 deletions
diff --git a/spec/frontend/issues/list/components/issues_list_app_spec.js b/spec/frontend/issues/list/components/issues_list_app_spec.js index b28a08e2fce..15dde76f49b 100644 --- a/spec/frontend/issues/list/components/issues_list_app_spec.js +++ b/spec/frontend/issues/list/components/issues_list_app_spec.js @@ -201,7 +201,7 @@ describe('CE IssuesListApp component', () => { return waitForPromises(); }); - it('renders', async () => { + it('renders', () => { expect(findIssuableList().props()).toMatchObject({ namespace: defaultProvide.fullPath, recentSearchesStorageKey: 'issues', @@ -803,7 +803,7 @@ describe('CE IssuesListApp component', () => { describe('when "sort" event is emitted by IssuableList', () => { it.each(Object.keys(urlSortParams))( 'updates to the new sort when payload is `%s`', - async (sortKey) => { + (sortKey) => { // Ensure initial sort key is different so we can trigger an update when emitting a sort key wrapper = sortKey === CREATED_DESC diff --git a/spec/frontend/issues/show/components/app_spec.js b/spec/frontend/issues/show/components/app_spec.js index 554662c611d..a4ee9a62926 100644 --- a/spec/frontend/issues/show/components/app_spec.js +++ b/spec/frontend/issues/show/components/app_spec.js @@ -331,7 +331,7 @@ describe('Issuable output', () => { }); describe('when title is not in view', () => { - beforeEach(async () => { + beforeEach(() => { wrapper.findComponent(GlIntersectionObserver).vm.$emit('disappear'); }); diff --git a/spec/frontend/issues/show/components/description_spec.js b/spec/frontend/issues/show/components/description_spec.js index 56057e9819f..c6869573b2e 100644 --- a/spec/frontend/issues/show/components/description_spec.js +++ b/spec/frontend/issues/show/components/description_spec.js @@ -162,7 +162,7 @@ describe('Description component', () => { expect(TaskList).toHaveBeenCalled(); }); - it('does not re-init the TaskList when canUpdate is false', async () => { + it('does not re-init the TaskList when canUpdate is false', () => { createComponent({ props: { issuableType: 'issuableType', diff --git a/spec/frontend/issues/show/components/header_actions_spec.js b/spec/frontend/issues/show/components/header_actions_spec.js index 58ec7387851..db3435855f6 100644 --- a/spec/frontend/issues/show/components/header_actions_spec.js +++ b/spec/frontend/issues/show/components/header_actions_spec.js @@ -440,7 +440,7 @@ describe('HeaderActions component', () => { wrapper = mountComponent({ props: { isIssueAuthor: false } }); }); - it("doesn't render", async () => { + it("doesn't render", () => { expect(findAbuseCategorySelector().exists()).toEqual(false); }); diff --git a/spec/frontend/issues/show/components/incidents/incident_tabs_spec.js b/spec/frontend/issues/show/components/incidents/incident_tabs_spec.js index 0f4fb02a40b..5a49b29c458 100644 --- a/spec/frontend/issues/show/components/incidents/incident_tabs_spec.js +++ b/spec/frontend/issues/show/components/incidents/incident_tabs_spec.js @@ -163,7 +163,7 @@ describe('Incident Tabs component', () => { mountComponent({ mount: mountExtended }); }); - it('shows only the summary tab by default', async () => { + it('shows only the summary tab by default', () => { expect(findActiveTabs()).toHaveLength(1); expect(findActiveTabs().at(0).text()).toBe(incidentTabsI18n.summaryTitle); }); diff --git a/spec/frontend/issues/show/components/incidents/timeline_events_form_spec.js b/spec/frontend/issues/show/components/incidents/timeline_events_form_spec.js index 500d0b0909e..9c4662ce38f 100644 --- a/spec/frontend/issues/show/components/incidents/timeline_events_form_spec.js +++ b/spec/frontend/issues/show/components/incidents/timeline_events_form_spec.js @@ -245,7 +245,7 @@ describe('Timeline events form', () => { expect(findMinuteInput().element.value).toBe('0'); }); - it('should disable the save buttons when event content does not exist', async () => { + it('should disable the save buttons when event content does not exist', () => { expect(findSubmitButton().props('disabled')).toBe(true); expect(findSubmitAndAddButton().props('disabled')).toBe(true); }); diff --git a/spec/frontend/issues/show/components/locked_warning_spec.js b/spec/frontend/issues/show/components/locked_warning_spec.js index f8a8c999632..2e786b665d0 100644 --- a/spec/frontend/issues/show/components/locked_warning_spec.js +++ b/spec/frontend/issues/show/components/locked_warning_spec.js @@ -35,11 +35,11 @@ describe('LockedWarning component', () => { expect(alert.props('dismissible')).toBe(false); }); - it(`displays correct message`, async () => { + it(`displays correct message`, () => { expect(alert.text()).toMatchInterpolatedText(sprintf(i18n.alertMessage, { issuableType })); }); - it(`displays a link with correct text`, async () => { + it(`displays a link with correct text`, () => { expect(link.exists()).toBe(true); expect(link.text()).toBe(`the ${issuableType}`); }); |