@plugin @plagiarism @plagiarism_turnitin @plagiarism_turnitin_smoke @plagiarism_turnitin_installed Feature: Plagiarism plugin can be installed and enabled In order to use this plugin As a user I need the installation to work and plagiarism plugins to be enabled Background: Set up the plugin When I log in as "admin" And I navigate to "Advanced features" in site administration And I set the field "Enable plagiarism plugins" to "1" And I press "Save changes" And I navigate to "Plugins > Plagiarism > Turnitin plagiarism plugin" in site administration And I set the following fields to these values: | Enable Turnitin | 1 | | Enable Turnitin for Assign | 1 | And I configure Turnitin URL And I configure Turnitin credentials And I set the following fields to these values: | Enable Diagnostic Mode | Standard | And I press "Save changes" Then the following should exist in the "plugins-control-panel" table: | Plugin name | | plagiarism_turnitin | @javascript @_file_upload Scenario: Test the plugin connectivity Given I navigate to "Plugins > Plagiarism > Turnitin plagiarism plugin" in site administration And I press "Test Turnitin Connection" Then I should see "Connection test successful"