Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@tool @javascript @tool_lp @tool_lp_frameworkFeature: Manage competency frameworksAs a competency framework adminIn order to perform CRUD operations on competency frameworkI need to create, update and delete competency frameworkBackground:Given I log in as "admin"And I change window size to "small"And I am on site homepageScenario: Create a new frameworkGiven I navigate to "Competencies > Competency frameworks" in site administrationAnd I should see "List of competency frameworks"And I click on "Add new competency framework" "button"And I should see "General"And I should see "Taxonomies"And I set the field "Name" to "Science Year-1"And I set the field "ID number" to "Comp-frm-1"And I press "Save changes"And I should see "The scale needs to be configured by selecting default and proficient items."And "Configure scales" "button" should be visibleAnd I press "Configure scales"And I click on "//input[@data-field='tool_lp_scale_default_1']" "xpath_element"And I click on "//input[@data-field='tool_lp_scale_proficient_1']" "xpath_element"And I click on "//input[@value='Close']" "xpath_element"When I press "Save changes"Then I should see "Competency framework created"And I should see "Science Year-1"Scenario: Read a frameworkGiven the following lp "frameworks" exist:| shortname | idnumber || Science Year-2 | sc-y-2 |And I navigate to "Competencies > Competency frameworks" in site administrationAnd I should see "Science Year-2"When I click on "Science Year-2" "link"Then I should see "Science Year-2"Scenario: Edit a frameworkGiven the following lp "frameworks" exist:| shortname | idnumber || Science Year-3 | sc-y-3 |And I navigate to "Competencies > Competency frameworks" in site administrationAnd I should see "Science Year-3"And I click on "Edit" of edit menu in the "Science Year-3" rowAnd the field "Name" matches value "Science Year-3 "And I set the field "Name" to "Science Year-3 Edited"When I press "Save changes"Then I should see "Competency framework updated"And I should see "Science Year-3 Edited"And I should see "sc-y-3"Scenario: Delete a frameworkGiven the following lp "frameworks" exist:| shortname | idnumber || Science Year-4 | sc-y-4 |And I navigate to "Competencies > Competency frameworks" in site administrationAnd I should see "Science Year-4"And I should see "sc-y-4"And I click on "Delete" of edit menu in the "Science Year-4" rowAnd "Confirm" "dialogue" should be visibleAnd "Delete" "button" should exist in the "Confirm" "dialogue"And "Cancel" "button" should exist in the "Confirm" "dialogue"And I click on "Cancel" "button" in the "Confirm" "dialogue"And I click on "Delete" of edit menu in the "Science Year-4" rowAnd "Confirm" "dialogue" should be visibleWhen I click on "Delete" "button" in the "Confirm" "dialogue"Then I should not see "Science Year-4"And I should not see "sc-y-4"Scenario: Edit a framework with competencies in user competencyGiven the following lp "frameworks" exist:| shortname | idnumber || Science Year-5 | sc-y-5 |And the following lp "competencies" exist:| shortname | framework || Comp1 | sc-y-5 || Comp2 | sc-y-5 |And the following lp "plans" exist:| name | user | description || Plan Science-5 | admin | Plan description |And the following lp "plancompetencies" exist:| plan | competency || Plan Science-5 | Comp1 || Plan Science-5 | Comp2 |And the following lp "usercompetencies" exist:| user | competency || admin | Comp1 || admin | Comp2 |And I navigate to "Competencies > Competency frameworks" in site administrationAnd I should see "Science Year-5"And I click on "Edit" of edit menu in the "Science Year-5" rowAnd the field "Name" matches value "Science Year-5 "And I set the field "Name" to "Science Year-5 Edited"And the "scaleid" "select" should be readonlyWhen I press "Save changes"Then I should see "Competency framework updated"And I should see "Science Year-5 Edited"And I should see "sc-y-5"Scenario: Edit a framework with competencies in user competency planGiven the following lp "frameworks" exist:| shortname | idnumber || Science Year-6 | sc-y-6 |And the following lp "competencies" exist:| shortname | framework || Comp1 | sc-y-6 || Comp2 | sc-y-6 |And the following lp "plans" exist:| name | user | description || Plan Science-6 | admin | Plan description |And the following lp "plancompetencies" exist:| plan | competency || Plan Science-6 | Comp1 || Plan Science-6 | Comp2 |And the following lp "usercompetencyplans" exist:| user | competency | plan || admin | Comp1 | Plan Science-6 || admin | Comp2 | Plan Science-6 |And I navigate to "Competencies > Competency frameworks" in site administrationAnd I should see "Science Year-6"And I click on "Edit" of edit menu in the "Science Year-6" rowAnd the field "Name" matches value "Science Year-6 "And I set the field "Name" to "Science Year-6 Edited"And the "scaleid" "select" should be readonlyWhen I press "Save changes"Then I should see "Competency framework updated"And I should see "Science Year-6 Edited"And I should see "sc-y-6"Scenario: Duplicate a competency frameworkGiven the following lp "frameworks" exist:| shortname | idnumber || CF1 | CF1 |And the following lp "competencies" exist:| shortname | framework || C1 | CF1 |And I navigate to "Competencies > Competency frameworks" in site administration# Duplicate the selected competency frameworkWhen I click on "Duplicate" of edit menu in the "CF1" row# Confirm that the selected framework was duplicated by clicking on the linkAnd I click on "CF1 (copy) (CF1_1)" "link"# Confirm that the corresponding competency also exists in the duplicated frameworkThen I should see "C1"