Skip to content

Commit

Permalink
Remove un-needed actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Aug 21, 2023
1 parent 349dd0e commit 35eeb0b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions testCafe/survey/progressBarType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,35 +103,27 @@ const json_toc = {
]
};

const setProgressBarType_questions = ClientFunction(() => {
window["survey"].progressBarType = "";
window["survey"].render();
});

frameworks.forEach(async framework => {
fixture`${framework} ${title}`.page`${url}${framework}`.beforeEach(
async t => {
}
);
test("progressBarType:questions", async t => {
await initSurvey(framework, json_questions);
await t.wait(1000);
await t.expect(Selector("span").withText("Answered 0/4 questions").exists).ok()
.typeText("input[type=email]", "stub@gmail.com")
.pressKey("tab")
.expect(Selector("span").withText("Answered 1/4 questions").exists).ok();
});
test("progressBarType:requiredQuestions", async t => {
await initSurvey(framework, json_requiredQuestions);
await t.wait(1000);
await t.expect(Selector("span").withText("Answered 0/2 questions").exists).ok()
.typeText("input[type=email]", "stub@gmail.com")
.pressKey("tab")
.expect(Selector("span").withText("Answered 1/2 questions").exists).ok();
});
test("navigation:toc", async t => {
await initSurvey(framework, json_toc);
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 35eeb0b

Please sign in to comment.