Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Jan 31, 2024
1 parent 611415e commit 664e267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testCafe/survey/surveyWidth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ frameworks.forEach((framework) => {

test("Check question width", async (t) => {
await t
.expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100% + 0px, 0% + 300px)");
.expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100%, 300px)");

await ClientFunction(() => { window["survey"].getAllQuestions()[0].minWidth = "200px"; })();
await t
.expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100% + 0px, 0% + 200px)");
.expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100%, 200px)");
});
});

0 comments on commit 664e267

Please sign in to comment.