Commit 77ec5f41 authored by Steven Spinelli's avatar Steven Spinelli Committed by Rebecca Blundell
Browse files

Bug 1785944: Behat: Test tags with different chars

Change-Id: I15652423467c8cf4c97f657c48c063e8bdddc6ad
parent 09f8cbb4
...@@ -28,7 +28,7 @@ Background: ...@@ -28,7 +28,7 @@ Background:
And I press "Edit folder \"folder1\"" And I press "Edit folder \"folder1\""
And I set the following fields to these values: And I set the following fields to these values:
| Description | This is a subdirectory | | Description | This is a subdirectory |
And I fill in select2 input "files_filebrowser_edit_tags" with "red" and select "red" And I fill in select2 input "files_filebrowser_edit_tags" with "&red" and select "&red"
And I press "Save changes" And I press "Save changes"
#Creating a Journal with tag #Creating a Journal with tag
And I choose "Journals" in "Content" from main menu And I choose "Journals" in "Content" from main menu
...@@ -66,56 +66,56 @@ Background: ...@@ -66,56 +66,56 @@ Background:
And I choose "Pages and collections" in "Portfolio" from main menu And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Edit" in "Page UserA_02" panel menu And I click on "Edit" in "Page UserA_02" panel menu
And I follow "Settings" in the "#toolbar-buttons" "css_element" And I follow "Settings" in the "#toolbar-buttons" "css_element"
And I fill in select2 input "settings_tags" with "orange" and select "orange" And I fill in select2 input "settings_tags" with "#orange" and select "#orange"
And I press "Save" And I press "Save"
# Creating a Note with a tag # Creating a Note with a tag
And I expand "General" node And I expand "General" node
And I follow "Note" in the "blocktype sidebar" property And I follow "Note" in the "blocktype sidebar" property
And I press "Add" And I press "Add"
And I fill in select2 input "instconf_tags" with "black" and select "black" And I fill in select2 input "instconf_tags" with "@black" and select "@black"
And I press "Save" And I press "Save"
# Creating a Text block with a tag # Creating a Text block with a tag
And I follow "Text" in the "blocktype sidebar" property And I follow "Text" in the "blocktype sidebar" property
And I press "Add" And I press "Add"
And I fill in select2 input "instconf_tags" with "brown" and select "brown" And I fill in select2 input "instconf_tags" with "ébrown" and select "ébrown"
And I press "Save" And I press "Save"
# Creating an external video block with a tag # Creating an external video block with a tag
And I expand "External" node And I expand "External" node
And I follow "External media" in the "blocktype sidebar" property And I follow "External media" in the "blocktype sidebar" property
And I press "Add" And I press "Add"
And I fill in "URL or embed code" with "https://youtu.be/VeS1iqQ6VIc" And I fill in "URL or embed code" with "https://youtu.be/VeS1iqQ6VIc"
And I fill in select2 input "instconf_tags" with "green" and select "green" And I fill in select2 input "instconf_tags" with "ègreen" and select "ègreen"
And I press "Save" And I press "Save"
# Creating a resume field with a tag # Creating a resume field with a tag
And I expand "Personal info" node And I expand "Personal info" node
And I follow "One résumé field" in the "blocktype sidebar" property And I follow "One résumé field" in the "blocktype sidebar" property
And I press "Add" And I press "Add"
And I fill in select2 input "instconf_tags" with "yellow" and select "yellow" And I fill in select2 input "instconf_tags" with "êyellow" and select "êyellow"
And I press "Save" And I press "Save"
And I choose "Pages and collections" in "Portfolio" from main menu And I choose "Pages and collections" in "Portfolio" from main menu
Then I follow "Tags" Then I follow "Tags"
# Verifying tags are saved # Verifying tags are saved
And I should see "blue" And I should see "blue" in the "#results_container" element
And I should see "black" And I should see "@black" in the "#results_container" element
And I should see "orange" And I should see "#orange" in the "#results_container" element
And I should see "red" And I should see "&red" in the "#results_container" element
And I should see "brown" And I should see "ébrown" in the "#results_container" element
And I should see "green" And I should see "ègreen" in the "#results_container" element
And I should see "yellow" And I should see "êyellow" in the "#results_container" element
#Check the repeated tags #Check the repeated tags
And I follow "blue" And I follow "blue"
And I should see "Journal one" And I should see "Journal one"
And I should see "woooo" And I should see "woooo"
And I should see "task one" And I should see "task one"
#Check single tag #Check single tag
And I follow "orange" And I follow "#orange"
And I should see "Page UserA_02" And I should see "Page UserA_02"
And I should not see "Note" And I should not see "Note"
#Check tags can be deleted from a page - Bug 1715491 #Check tags can be deleted from a page - Bug 1715491
Given I follow "Page UserA_02" Given I follow "Page UserA_02"
And I follow "Edit" And I follow "Edit"
And I click on "Settings" in the "Toolbar buttons" property And I click on "Settings" in the "Toolbar buttons" property
And I clear value "orange (1)" from select2 field "settings_tags" And I clear value "#orange (1)" from select2 field "settings_tags"
And I press "Save" And I press "Save"
And I display the page And I display the page
Then I should not see "orange" 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