Skip to content

Commit

Permalink
Work for #5551 - Implement TOC navigation - try to fix f-test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsv2013 committed Mar 1, 2023
1 parent d02936c commit f3a7953
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testCafe/survey/progressBarType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ frameworks.forEach(async framework => {
test("progressBarType:questions", async t => {
json["progressBarType"] = "questions";
await initSurvey(framework, json);
await t.wait(1000);
await t.expect(Selector("span").withText("Answered 0/4 questions").exists).ok()
.typeText("input[type=email]", "[email protected]")
.pressKey("tab")
Expand All @@ -57,6 +58,7 @@ frameworks.forEach(async framework => {
test("progressBarType:requiredQuestions", async t => {
json["progressBarType"] = "requiredQuestions";
await initSurvey(framework, json);
await t.wait(1000);
await t.expect(Selector("span").withText("Answered 0/2 questions").exists).ok()
.typeText("input[type=email]", "[email protected]")
.pressKey("tab")
Expand All @@ -66,6 +68,7 @@ frameworks.forEach(async framework => {
json["showTOC"] = true;
json["pages"][0]["elements"][0]["isRequired"] = false;
await initSurvey(framework, json);
await t.wait(1000);
const page1 = Selector(".sv-list__item-body").withText("page1");
const page2 = Selector(".sv-list__item-body").withText("page2");
await t.expect(page1.exists).ok();
Expand Down

0 comments on commit f3a7953

Please sign in to comment.