Skip to content

Commit

Permalink
MDL-50154 behat: Resize pdf window so toolbar is always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshtaneja committed May 8, 2015
1 parent 0ce090c commit f84a0d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature
Expand Up @@ -19,12 +19,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "admin"
And I expand "Site administration" node
And I expand "Plugins" node
And I expand "Activity modules" node
And I expand "Assignment" node
And I expand "Feedback plugins" node
And I follow "Annotate PDF"
And I navigate to "Annotate PDF" node in "Site administration > Plugins > Activity modules > Assignment > Feedback plugins"
And I upload "pix/help.png" file to "" filemanager
And I upload "pix/docs.png" file to "" filemanager
When I press "Save changes"
Expand Down Expand Up @@ -58,11 +53,14 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I follow "View/grade all submissions"
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
And I follow "Launch PDF editor..."
And I change window size to "large"
And I click on ".navigate-next-button" "css_element"
And I click on ".stampbutton" "css_element"
And I click on ".linebutton" "css_element"
And I click on ".commentcolourbutton" "css_element"
And I click on "//img[@alt=\"Blue\"]" "xpath_element"
And I change window size to "medium"
And I wait until the page is ready
And I click on "Close" "button"
And I press "Save changes"
And I should see "The grade changes were saved"
Expand Down Expand Up @@ -134,6 +132,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I change window size to "large"
And I click on ".stampbutton" "css_element"
And I click on ".drawingcanvas" "css_element"
And I change window size to "medium"
And I wait until the page is ready
And I click on "Close" "button"
And I press "Save changes"
And I should see "The grade changes were saved"
Expand Down
Expand Up @@ -67,7 +67,10 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
And I follow "Course 1"
And I follow "Test assignment name"
When I follow "View annotated PDF..."
And I change window size to "large"
Then I should see "Annotate PDF"
And I change window size to "medium"
And I wait until the page is ready
And I click on "Close" "button"
And I log out
And I log in as "student2"
Expand Down

0 comments on commit f84a0d4

Please sign in to comment.