Skip to content

Commit

Permalink
Fix: fix functional tests (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanDeMicco authored Mar 23, 2018
1 parent 67e1b71 commit d0f7a34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functional-tests/controls_test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const {
SELECTOR_BOX_PREVIEW_LOADED,
SELECTOR_DOC_CURRENT_PAGE,
SELECTOR_BOX_PREVIEW_ZOOM_OUT,
SELECTOR_BOX_PREVIEW_ZOOM_OUT_BUTTON,
SELECTOR_DOC_FIRST_PAGE,
SELECTOR_BOX_PREVIEW_ZOOM_IN,
SELECTOR_BOX_PREVIEW_ZOOM_IN_BUTTON,
SELECTOR_BOX_PREVIEW_NEXT_PAGE,
SELECTOR_BOX_PREVIEW_PREVIOUS_PAGE,
SELECTOR_BOX_PREVIEW_NUM_INPUT,
Expand All @@ -29,7 +29,7 @@ Scenario('Check document preview zoom @ci @chrome @firefox @edge @ie @safari @an
const origWidth = yield I.grabAttributeFrom(SELECTOR_DOC_FIRST_PAGE, 'scrollWidth');
const origHeight = yield I.grabAttributeFrom(SELECTOR_DOC_FIRST_PAGE, 'scrollHeight');

zoom(I, SELECTOR_BOX_PREVIEW_ZOOM_OUT);
zoom(I, SELECTOR_BOX_PREVIEW_ZOOM_OUT_BUTTON);

const zoomedOutWidth = yield I.grabAttributeFrom(SELECTOR_DOC_FIRST_PAGE, 'scrollWidth');
const zoomedOutHeight = yield I.grabAttributeFrom(SELECTOR_DOC_FIRST_PAGE, 'scrollHeight');
Expand All @@ -38,7 +38,7 @@ Scenario('Check document preview zoom @ci @chrome @firefox @edge @ie @safari @an
assert.ok(parseInt(origHeight, 10) > parseInt(zoomedOutHeight, 10));

// zoom in
zoom(I, SELECTOR_BOX_PREVIEW_ZOOM_IN);
zoom(I, SELECTOR_BOX_PREVIEW_ZOOM_IN_BUTTON);

const zoomedInWidth = yield I.grabAttributeFrom(SELECTOR_DOC_FIRST_PAGE, 'scrollWidth');
const zoomedInHeight = yield I.grabAttributeFrom(SELECTOR_DOC_FIRST_PAGE, 'scrollHeight');
Expand Down

0 comments on commit d0f7a34

Please sign in to comment.