Skip to content

Commit

Permalink
update system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anadis504 committed May 22, 2023
1 parent 85e7fc4 commit 72f8a3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test("can add weighted options to non-factorial survey and build a sum-factor re
.getByPlaceholder("question_label; question text")
.fill("first_quest; Are you always hungry?")
await frame
.getByRole("combobox", { name: "select-answer-type-first_quest." })
.getByRole("combobox", { name: "select-answerSpec-type-first_quest." })
.selectOption("weighted-radio-group")
await frame.getByRole("button", { name: "Add Option" }).click()
await frame.getByLabel("Option text").fill("yes")
Expand All @@ -55,7 +55,7 @@ test("can add weighted options to non-factorial survey and build a sum-factor re
.getByPlaceholder("question_label; question text")
.fill("anger; Do you get angry when hungry?")
await frame
.getByRole("combobox", { name: "select-answer-type-anger." })
.getByRole("combobox", { name: "select-answerSpec-type-anger." })
.selectOption("weighted-radio-group")
await frame
.getByRole("group", { name: "anger." })
Expand Down Expand Up @@ -90,7 +90,7 @@ test("can add weighted options to non-factorial survey and build a sum-factor re
})
.getByPlaceholder("question_label; question text")
.fill("do; What do you do when you get angry?")
await frame.getByRole("combobox", { name: "select-answer-type-do." }).press("ArrowDown")
await frame.getByRole("combobox", { name: "select-answerSpec-type-do." }).press("ArrowDown")
await frame.getByRole("checkbox", { name: "mark-conditional-do" }).check()
await frame.locator("#condition-selector-for-do").click()
await frame.getByRole("combobox", { name: "triggering-option-selector" }).fill("ofte")
Expand Down
12 changes: 6 additions & 6 deletions system-tests/src/tests/edit-exercise/edit-non-factorial.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test("can add non-factorial survey type with information elements and questions

await page
.frameLocator("iframe")
.getByRole("combobox", { name: "select-answer-type-ownership" })
.getByRole("combobox", { name: "select-answerSpec-type-ownership" })
.selectOption("radio-group")
await page.frameLocator("iframe").getByRole("button", { name: "add option" }).click()
await page.frameLocator("iframe").getByRole("button", { name: "add option" }).click()
Expand All @@ -48,7 +48,7 @@ test("can add non-factorial survey type with information elements and questions
await page
.frameLocator("iframe")
.getByRole("group", { name: "owner." })
.getByRole("combobox", { name: "select-answer-type-owner." })
.getByRole("combobox", { name: "select-answerSpec-type-owner." })
.selectOption("multiple-choice")
await page
.frameLocator("iframe")
Expand All @@ -62,7 +62,7 @@ test("can add non-factorial survey type with information elements and questions
.click()
await page
.frameLocator("iframe")
.getByRole("combobox", { name: "select-answer-type-other_owner" })
.getByRole("combobox", { name: "select-answerSpec-type-other_owner" })
.selectOption("advanced-dropdown")
await page
.frameLocator("iframe")
Expand All @@ -88,7 +88,7 @@ test("can add non-factorial survey type with information elements and questions
await page.frameLocator("iframe").locator("#react-select-2-option-2").dblclick()
await page
.frameLocator("iframe")
.getByRole("combobox", { name: "select-answer-type-animal_name" })
.getByRole("combobox", { name: "select-answerSpec-type-animal_name" })
.selectOption("number")
await page
.frameLocator("iframe")
Expand All @@ -99,7 +99,7 @@ test("can add non-factorial survey type with information elements and questions
await page.frameLocator("iframe").locator("#react-select-3-option-1").click()
await page
.frameLocator("iframe")
.getByRole("combobox", { name: "select-answer-type-official_name" })
.getByRole("combobox", { name: "select-answerSpec-type-official_name" })
.selectOption("dropdown-selection")
await page
.frameLocator("iframe")
Expand Down Expand Up @@ -155,7 +155,7 @@ test("can add non-factorial survey type with information elements and questions
.click()
await page
.frameLocator("iframe")
.getByRole("combobox", { name: "select-answer-type-death" })
.getByRole("combobox", { name: "select-answerSpec-type-death" })
.selectOption("date")
await page
.frameLocator("iframe")
Expand Down

0 comments on commit 72f8a3b

Please sign in to comment.