-
Given
the following "users" exist:
BehatDataGenerators::the_following_exist()
-
And
the following "pages" exist:
BehatDataGenerators::the_following_exist()
-
And
the following "blocks" exist:
BehatDataGenerators::the_following_exist()
-
Given
I log in as "UserA" with password "Kupuh1pa!"
BehatGeneral::i_login_as()
-
When
I choose "Files" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I set the following fields to these values:
BehatForms::i_set_the_following_fields_to_these_values()
-
And
I scroll to the base of id "files_filebrowser_createfolder"
BehatGeneral::i_scroll_into_view_base()
-
And
I click on "Create folder"
BehatGeneral::i_click_on()
-
And
I click on "Edit folder \"folder1\""
BehatGeneral::i_click_on()
-
And
I set the following fields to these values:
BehatForms::i_set_the_following_fields_to_these_values()
-
And
I fill in select2 input "files_filebrowser_edit_tags" with "&red" and select "&red"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I fill in select2 input "files_filebrowser_edit_tags" with "My tag" and select "My tag"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save changes"
BehatGeneral::i_click_on()
-
And
I choose "Journals" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I click on "New entry"
BehatGeneral::i_click_on()
-
And
I set the following fields to these values:
BehatForms::i_set_the_following_fields_to_these_values()
-
And
I scroll to the base of id "editpost_tags_container"
BehatGeneral::i_scroll_into_view_base()
-
And
I fill in select2 input "editpost_tags" with "blue" and select "blue"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save entry"
BehatGeneral::i_click_on()
-
And
I choose "Plans" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I click on "New plan"
BehatGeneral::i_click_on()
-
And
I fill in the following:
BehatMaharaCoreContext::fillFields()
-
And
I scroll to the base of id "addplan_tags_container"
BehatGeneral::i_scroll_into_view_base()
-
And
I fill in select2 input "addplan_tags" with "blue" and select "blue"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save plan"
BehatGeneral::i_click_on()
-
And
I click on "New task"
BehatGeneral::i_click_on()
-
And
I fill in the following:
BehatMaharaCoreContext::fillFields()
-
And
I fill in "Completion date" with "tomorrow" date in the format "Y/m/d"
BehatGeneral::i_fill_in_date()
-
And
I scroll to the base of id "edittask_tags_container"
BehatGeneral::i_scroll_into_view_base()
-
And
I fill in select2 input "edittask_tags" with "blue" and select "blue"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save task"
BehatGeneral::i_click_on()
-
And
I choose "Portfolios" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I click on "Edit" in "Page UserA_01" card menu
BehatGeneral::i_click_on_in_card_menu()
-
And
I click on "Settings" in the "Toolbar buttons" "Nav" property
BehatGeneral::get_property_call_funct()
-
And
I fill in select2 input "settings_tags" with "blue" and select "blue"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I fill in select2 input "settings_tags" with "My tag" and select "My tag"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
And
I choose "Portfolios" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I click on "Edit" in "Page UserA_02" card menu
BehatGeneral::i_click_on_in_card_menu()
-
And
I click on "Settings" in the "Toolbar buttons" "Nav" property
BehatGeneral::get_property_call_funct()
-
And
I fill in select2 input "settings_tags" with "#orange" and select "#orange"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I fill in select2 input "settings_tags" with "My tag" and select "My tag"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
When
I click on the add block button
BehatGeneral::i_click_on_add_block()
-
And
I click on "Add" in the "Add new block" "Blocks" property
BehatGeneral::get_property_call_funct()
-
And
I click on blocktype "Note"
BehatGeneral::i_click_on_blocktype()
-
And
I fill in the following:
BehatMaharaCoreContext::fillFields()
-
And
I fill in select2 input "instconf_tags" with "@black" and select "@black"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I fill in select2 input "instconf_tags" with "My tag" and select "My tag"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save" in the "Submission" "Modal" property
BehatGeneral::get_property_call_funct()
-
When
I click on the add block button
BehatGeneral::i_click_on_add_block()
-
And
I click on "Add" in the "Add new block" "Blocks" property
BehatGeneral::get_property_call_funct()
-
And
I click on blocktype "Text"
BehatGeneral::i_click_on_blocktype()
-
And
I fill in the following:
BehatMaharaCoreContext::fillFields()
-
And
I fill in select2 input "instconf_tags" with "ébrown" and select "ébrown"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I fill in select2 input "instconf_tags" with "My tag" and select "My tag"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
When
I click on the add block button
BehatGeneral::i_click_on_add_block()
-
And
I click on "Add" in the "Add new block" "Blocks" property
BehatGeneral::get_property_call_funct()
-
And
I click on blocktype "One résumé field"
BehatGeneral::i_click_on_blocktype()
-
And
I fill in select2 input "instconf_tags" with "êyellow" and select "êyellow"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
When
I click on the add block button
BehatGeneral::i_click_on_add_block()
-
And
I click on "Add" in the "Add new block" "Blocks" property
BehatGeneral::get_property_call_funct()
-
And
I click on blocktype "External media"
BehatGeneral::i_click_on_blocktype()
-
And
I fill in "URL or embed code" with "https://www.youtube.com/embed/VeS1iqQ6VIc"
BehatMaharaCoreContext::fillField()
-
And
I fill in select2 input "instconf_tags" with "ègreen" and select "ègreen"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I fill in select2 input "instconf_tags" with "My tag" and select "My tag"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
And
I choose "Portfolios" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
Then
I click on "Tags" in the "Tags block" "Blocks" property
BehatGeneral::get_property_call_funct()
-
And
I should see "blue" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I should see "@black" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I should see "#orange" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I should see "&red" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I should see "ébrown" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I should see "ègreen" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I should see "êyellow" in the "Search results for all tags" "Tags" property
BehatGeneral::get_property_call_funct()
-
And
I click on "blue"
BehatGeneral::i_click_on()
-
And
I should see "Journal one"
BehatMaharaCoreContext::assertPageContainsText()
-
And
I should see "woooo"
BehatMaharaCoreContext::assertPageContainsText()
-
And
I should see "task one"
BehatMaharaCoreContext::assertPageContainsText()
-
And
I click on "#orange"
BehatGeneral::i_click_on()
-
And
I should see "Page UserA_02"
BehatMaharaCoreContext::assertPageContainsText()
-
And
I should not see "Text Block 101"
BehatMaharaCoreContext::assertPageNotContainsText()
-
Given
I click on "Page UserA_02"
BehatGeneral::i_click_on()
-
And
I click on "Edit"
BehatGeneral::i_click_on()
-
And
I click on "Settings" in the "Toolbar buttons" "Nav" property
BehatGeneral::get_property_call_funct()
-
And
I clear value "#orange (1)" from select2 field "settings_tags"
BehatForms::iClearSelect2Field()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
And
I display the page
BehatGeneral::i_display_page()
-
Then
I should not see "#orange"
BehatMaharaCoreContext::assertPageNotContainsText()
-
Given
I choose "Portfolios" in "Create" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I click on "Create" in the "Create" "Views" property
BehatGeneral::get_property_call_funct()
-
And
I click on "Page" in the dialog
BehatGeneral::i_click_on_in_dialog()
-
And
I fill in the following:
BehatMaharaCoreContext::fillFields()
-
And
I fill in "Create portfolio via tags feature description" in first editor
BehatForms::iFillInFirstWYSIWYGEditor()
-
And
I should see "Search for or enter tags to pull content into your page automatically. If you enter more than one tag, only content that is tagged with all these tags will appear on the page. You can then re-arrange and delete blocks."
BehatMaharaCoreContext::assertPageContainsText()
-
And
I fill in select2 input "settings_createtags" with "blue" and select "blue"
BehatForms::iFillInSelect2InputWithAndSelect()
-
When
I click on "Save"
BehatGeneral::i_click_on()
-
Then
I should see "Tagged journal entries"
BehatMaharaCoreContext::assertPageContainsText()
-
And
I should see "Plans"
BehatMaharaCoreContext::assertPageContainsText()
-
When
I click on "Settings" in the "Toolbar buttons" "Nav" property
BehatGeneral::get_property_call_funct()
-
And
I fill in select2 input "settings_createtags" with "@black" and select "@black"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
Then
I should see "Note Block 3304"
BehatMaharaCoreContext::assertPageContainsText()
-
When
I click on "Settings" in the "Toolbar buttons" "Nav" property
BehatGeneral::get_property_call_funct()
-
And
I fill in select2 input "settings_createtags" with "ébrown" and select "ébrown"
BehatForms::iFillInSelect2InputWithAndSelect()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
When
I choose "Shared by me" in "Share" from main menu
BehatNavigation::i_choose_submenu_main()
-
And
I click on "Edit access" in "Page UserA_01" row
BehatGeneral::i_click_on_in_row()
-
And
I set the select2 value "Page UserA_01, Page UserA_02, Create portfolio via tags feature" for "editaccess_views"
BehatForms::iFillInSelect2Field()
-
And
I select "Public" from "accesslist[0][searchtype]"
BehatMaharaCoreContext::selectOption()
-
And
I click on "Save"
BehatGeneral::i_click_on()
-
And
I log out
BehatGeneral::i_logout()
-
Given
I log in as "UserB" with password "Kupuh1pa!"
BehatGeneral::i_login_as()
-
And
I wait "2" seconds
BehatGeneral::i_wait_seconds()
-
When
I click on "Page UserA_02"
BehatGeneral::i_click_on()
-
And
I click on "My tag"
BehatGeneral::i_click_on()
-
Then
I should see "Tagged content of Angela User"
BehatMaharaCoreContext::assertPageContainsText()
-
And
I should see "External media"
BehatMaharaCoreContext::assertPageContainsText()
-
Then
I should see "Note Block 3304"
BehatMaharaCoreContext::assertPageContainsText()
-
Then
I should see "Page UserA_01"
BehatMaharaCoreContext::assertPageContainsText()
-
Then
I should see "Page UserA_02"
BehatMaharaCoreContext::assertPageContainsText()
-
Then
I should see "Text Block 101"
BehatMaharaCoreContext::assertPageContainsText()