Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(test) : fix failing label test (#2741)
Browse files Browse the repository at this point in the history
This PR fixes the failing label test due to changes in the API tests PR fabric8io/fabric8-test#911
  • Loading branch information
Raunak1203 authored and jarifibrahim committed Aug 2, 2018
1 parent 17598a9 commit 3aaf9a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tests/specs/workItemTableTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3aaf9a9

Please sign in to comment.