Skip to content

Commit

Permalink
Chore: Ensure all new drawings get deleted in functional tests (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum authored Apr 24, 2018
1 parent 90af909 commit 8339dbf
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion functional-tests/tests/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Scenario('Create/Delete a drawing annotation w/ drawing dialog @desktop', (I) =>
I.waitForInvisible(SELECTOR_ANNOTATION_DRAWING_DIALOG);
I.click(SELECTOR_ANNOTATION_BUTTON_DRAW_POST);

I.say('Select drawing')
I.say('Select drawing');
clickAtLocation(I, SELECTOR_TEXT_LAYER, 300);
I.scrollTo(SELECTOR_ANNOTATION_DRAWING_DIALOG);
I.waitForVisible(SELECTOR_ANNOTATION_DRAWING_DIALOG);
Expand Down Expand Up @@ -119,4 +119,17 @@ Scenario('Create a drawing annotation by exiting mode @desktop', (I) => {
I.say('Save drawing');
I.click(SELECTOR_ANNOTATION_BUTTON_DRAW_POST);
I.waitForInvisible(SELECTOR_ANNOTATION_DRAWING_DIALOG);

I.say('Select drawing');
clickAtLocation(I, SELECTOR_TEXT_LAYER, 300);
I.scrollTo(SELECTOR_ANNOTATION_DRAWING_DIALOG);
I.waitForVisible(SELECTOR_ANNOTATION_DRAWING_DIALOG);

I.say('Drawing should have a boundary and dialog should appear');
I.waitForText('Kanye West drew', 9, SELECTOR_ANNOTATION_DRAWING_LABEL);
I.waitForEnabled(SELECTOR_DELETE_DRAWING_BTN);

I.say('Delete drawing');
I.click(SELECTOR_DELETE_DRAWING_BTN);
I.waitForInvisible(SELECTOR_ANNOTATION_DRAWING_DIALOG);
});

0 comments on commit 8339dbf

Please sign in to comment.