diff --git a/src/tests/specs/detailPage.spec.ts b/src/tests/specs/detailPage.spec.ts index 347071fc7..9e6a4bbd4 100644 --- a/src/tests/specs/detailPage.spec.ts +++ b/src/tests/specs/detailPage.spec.ts @@ -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'); });