From 3aaf9a94229d2a2a135f4401f183a37b29862328 Mon Sep 17 00:00:00 2001 From: Raunak1203 <34271052+Raunak1203@users.noreply.github.com> Date: Thu, 2 Aug 2018 11:25:51 +0530 Subject: [PATCH] fix(test) : fix failing label test (#2741) This PR fixes the failing label test due to changes in the API tests PR fabric8io/fabric8-test#911 --- src/tests/specs/workItemTableTest.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/specs/workItemTableTest.spec.ts b/src/tests/specs/workItemTableTest.spec.ts index a3fa6c014..51235ab9a 100644 --- a/src/tests/specs/workItemTableTest.spec.ts +++ b/src/tests/specs/workItemTableTest.spec.ts @@ -146,14 +146,15 @@ describe('Work Item datatable list: ', () => { it('clicking on label should filter the workitem list by label', async () => { let labelFilter = 'label: ' + c.label, - workItemTitle4 = {'title': 'Workitem_Title_4'}; + workItemTitle = {'title': 'test clicking on label should filter the workitem list by label'}; await planner.sidePanel.clickRequirement(); await planner.waitUntilUrlContains('typegroup.name:Requirements'); - await planner.workItemList.clickWorkItem(workItemTitle4.title); + await planner.createWorkItem(workItemTitle); + await planner.workItemList.clickWorkItem(workItemTitle.title); await planner.quickPreview.addLabel(c.label); await planner.quickPreview.close(); - await planner.workItemList.clickWorkItemLabel(workItemTitle4.title); + await planner.workItemList.clickWorkItemLabel(workItemTitle.title); expect(await planner.header.getFilterConditions()).toContain(labelFilter); await planner.header.clickShowTree(); expect(await planner.header.getFilterConditions()).toContain(labelFilter);