turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
45 stars 65 forks source link

Behat tests failures on Moodle 4.3 #708

Open binhdang83 opened 1 month ago

binhdang83 commented 1 month ago

There are many failures by running the Behat tests of the latest version of plagiarism/Turnitin, 2024020501, on Moodle 4.3 :

--- Failed steps:

001 Scenario: Student accepts eula, submits and instructor opens the viewer # /moodle4.3/plagiarism/turnitin/tests/behat/assignment.feature:44
      Then the following should exist in the "plugins-control-panel" table: # /moodle4.3/plagiarism/turnitin/tests/behat/assignment.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

002 Scenario: Student accepts eula, submits a non-OR file and instructor opens the viewer # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_any_file_type.feature:45
      Then the following should exist in the "plugins-control-panel" table:               # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_any_file_type.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

003 Scenario: A student can submit a draft and it is not sent to Turnitin until it is submitted. # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_drafts.feature:49
      Then the following should exist in the "plugins-control-panel" table:                      # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_drafts.feature:34
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

004 Scenario: A student can submit a draft and it is sent to Turnitin.      # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_drafts.feature:120
      Then the following should exist in the "plugins-control-panel" table: # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_drafts.feature:34
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

005 Scenario: Confirm that all students in a group can see the similarity report even if they didn't submit. # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_groups.feature:57
      And I add a "Assignment" to section "1" and I fill the form with:                                      # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_groups.feature:40
        Field matching locator "use_turnitin" not found. (Behat\Mink\Exception\ElementNotFoundException)

006 Scenario: Student accepts eula, submits multiple files and these are sent to Turnitin. # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_multiple_files.feature:45
      Then the following should exist in the "plugins-control-panel" table:                # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_multiple_files.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

007 Scenario: Student accepts eula, submits, gets a report and then resubmits, then and instructor opens the viewer # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_resubmission.feature:45
      Then the following should exist in the "plugins-control-panel" table:                                         # /moodle4.3/plagiarism/turnitin/tests/behat/assignment_resubmission.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

008 Scenario: Student can still submit to Moodle even if declining the EULA. The student can then accept the EULA and the admin can resubmit the file. # /moodle4.3/plagiarism/turnitin/tests/behat/eula.feature:44
      Then the following should exist in the "plugins-control-panel" table:                                                                            # /moodle4.3/plagiarism/turnitin/tests/behat/eula.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

009 Scenario: Add a post to a discussion with a file attached and retrieve the originality score # /moodle4.3/plagiarism/turnitin/tests/behat/forum.feature:53
      Then the following should exist in the "plugins-control-panel" table:                      # /moodle4.3/plagiarism/turnitin/tests/behat/forum.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

010 Scenario: Test the plugin connectivity                                  # /moodle4.3/plagiarism/turnitin/tests/behat/installed.feature:26
      Then the following should exist in the "plugins-control-panel" table: # /moodle4.3/plagiarism/turnitin/tests/behat/installed.feature:21
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

011 Scenario: Student accepts eula, submits and instructor opens the viewer and finds a masked student name. # /moodle4.3/plagiarism/turnitin/tests/behat/pseudo_submission.feature:51
      Then the following should exist in the "plugins-control-panel" table:                                  # /moodle4.3/plagiarism/turnitin/tests/behat/pseudo_submission.feature:39
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

012 Scenario: A submission can be queued and sent to Turnitin for a workshop # /moodle4.3/plagiarism/turnitin/tests/behat/workshop.feature:49
      Then the following should exist in the "plugins-control-panel" table:  # /moodle4.3/plagiarism/turnitin/tests/behat/workshop.feature:32
        Table matching locator "plugins-control-panel" not found. (Behat\Mink\Exception\ElementNotFoundException)

12 scenarios (12 failed)
708 steps (159 passed, 12 failed, 2 undefined, 535 skipped)