Skip to content

Commit

Permalink
work for #2729 : update test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Mar 18, 2022
1 parent 0771614 commit 6c738e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testCafe/designer/surface.ts
Expand Up @@ -21,12 +21,13 @@ test("Image question", async (t) => {
};
const imageQuestionSelector = Selector(".sd-image__image");
await setJSON(json);

await t
.resizeWindow(1080, 720)
.resizeWindow(1280, 900)
.expect(imageQuestionSelector.exists).ok()
.expect(imageQuestionSelector.classNames).contains("sd-image__image--adaptive")
.expect(imageQuestionSelector.clientWidth).eql(428)
.expect(imageQuestionSelector.clientHeight).eql(285)
.expect(imageQuestionSelector.clientWidth).eql(540)
.expect(imageQuestionSelector.clientHeight).eql(359)

.click(imageQuestionSelector)
.expect(Selector("div [data-name=\"imageHeight\"] input").value).eql("")
Expand Down

0 comments on commit 6c738e6

Please sign in to comment.