%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/ava/admin/tool/licensemanager/tests/behat/
Upload File :
Create Path :
Current File : /home/vacivi36/ava/admin/tool/licensemanager/tests/behat/delete_license.feature

@tool @tool_licensemanager
Feature: Delete custom licenses
  In order to manage custom licenses
  As an admin
  I need to be able to delete custom licenses but not standard Moodle licenses

  @javascript
  Scenario: I can delete a custom license
    Given I log in as "admin"
    And I navigate to "Licence > Licence manager" in site administration
    And I click on "Create licence" "link"
    And I set the following fields to these values:
    | shortname       | MIT                                 |
    | fullname        | MIT Licence                         |
    | source          | https://opensource.org/licenses/MIT |
    | Licence version | ##1 March 2019##                    |
    And I press "Save changes"
    And I click on "Delete" "icon" in the "MIT" "table_row"
    When I click on "Save changes" "button" in the "Delete licence" "dialogue"
    Then I should not see "MIT Licence" in the "manage-licenses" "table"

  Scenario: I cannot delete a standard license
    Given I log in as "admin"
    And I navigate to "Licence > Licence manager" in site administration
    Then I should see "Licence not specified" in the "unknown" "table_row"
    And I should not see "Delete" in the "unknown" "table_row"

Zerion Mini Shell 1.0