h1. Setup # Check that ghostscript is installed # Course 1 (C1) # Users: teacher1, student1 # Course enrolments: ## teacher1 as a editingteacher ## student1 as a student h1. Testing Submit a PDF files as a student and scroll the PDF as a teacher during grading # Log in as a "teacher1" # Go to test Course 1 homepage # I add an Assignment to section #1 and fill the form #* Fill Assignment name: Test assignment name #* Fill Description: Submit your PDF file #* Fill assignsubmission_file_enabled: 1 #* Fill Maximum number of uploaded files: 2 # Log out # Log in as a "student1" # Go to test Course 1 homepage # Go to messaging "Test assignment name" # Press "Add submission" # Upload "mod/assign/feedback/editpdf/tests/fixtures/submission.pdf" file to "File submissions" filemanager # Press "Save changes" # *EXPECTED RESULT* Check you can see the "Submitted for grading" # *EXPECTED RESULT* Check you can see the "submission.pdf" # *EXPECTED RESULT* Check you can see the "Not graded" # Log out # Log in as a "teacher1" # Go to test Course 1 homepage # Go to messaging "Test assignment name" # Navigate to "View all submissions" in current page administration # Click on "Grade" "link" in the "Submitted for grading" "table_row" # Wait for the complete PDF to load # *EXPECTED RESULT* Check you can see the "Page 1 of 2" (first page of the generated document) # Scroll down document # *EXPECTED RESULT* Check you can see the "Page 2 of 2" (next page of the generated document) # Scroll down document # *EXPECTED RESULT* Check you can see the "Page 2 of 2" (the same page of the generated document) # Scroll up document # *EXPECTED RESULT* Check you can see the "Page 1 of 2" (first page of the generated document) # Scroll up document # *EXPECTED RESULT* Check you can see the "Page 1 of 2" (the same page of the generated document)