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

Commit

Permalink
fix(test): create new item for type change test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbornsen authored and sudsen committed Aug 20, 2018
1 parent fc8e059 commit 3bfcfb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/specs/detailPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ describe('Detail View test: ', () => {
});

it('Should change the type of work item', async () => {
await planner.workItemList.openDetailPage(c.workItemTitle2);
let workitemname = {'title': 'change type test'};
await planner.createWorkItem(workitemname);
await planner.workItemList.openDetailPage(workitemname.title);
await planner.waitUntilUrlContains('detail');
await planner.detailPage.titleInput.untilTextIsPresentInValue(c.workItemTitle2);
await planner.detailPage.titleInput.untilTextIsPresentInValue(workitemname.title);
await planner.detailPage.changeTypeTo('Bug');
expect(await planner.detailPage.getType()).toBe('Bug');
});
Expand Down

0 comments on commit 3bfcfb3

Please sign in to comment.