Commit 9a40f91c authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1715491: fix for removing tags from view

behat test added to add_tags.feature

Change-Id: I014b29c0b7e22a0ff87f321fe60ccb66edd88bbe
parent 039c5ecc
......@@ -672,7 +672,8 @@ function set_view_title_and_description(Pieform $form, $values){
// deleting description
$view->set('description', '');
$view->set('tags', $values['tags']);
$tags = $values['tags'] ? $values['tags'] : array();
$view->set('tags', $tags);
if (isset($values['locked'])) {
$view->set('locked', (int)$values['locked']);
......@@ -90,3 +90,11 @@ Background:
And I follow "orange"
And I should see "Testing page 2"
And I should not see "Note"
#Check tags can be deleted from a page - Bug 1715491
Given I follow "Testing page 2"
And I follow "Edit this page"
And I click on "Settings" in the "div#toolbar-buttons" "css_element"
And I clear value "orange (1)" from select2 field "settings_tags"
And I press "Save"
And I display the page
Then I should not see "orange"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment