0 features failed of 46 features
0 scenarios failed of 68 scenarios
0 steps failed of 2386


Suite: core_features

Feature: Adding journals to institution level

In order to use journals at an institution level
As a person and admin
So I can create journals to share on pages

Feature: Adding pages to a collection

In order to add pages to a collection
As an normal member I need pages
So I can add them to the collection

Feature: Mahara users can create their blogs

As a mahara user
I need to create blogs

Feature: Adding a pdf to a page

As a student
I need to be able to add a pdf block to my portfolio
and check it is visible on the page

Feature: Adding tags and Verifying them

In order to add a tag
As an UserA I need to be able to go Content
So I can create a file and tag

Feature: Mahara people can view comments and details of their content on pages

As a person
I want to view details and comments of my content on pages

Feature: Add notes using content from an existing note (Bugs 1710988 & 1044878)

As a Person
I want to add portfolio page note content using an existing note
So that I can easily keep my portfolio pages up to date

Feature: Previewing copy a page or collection and then copying it

In order to use the pop out window on copy a page or collection
As an admin/user
I need to be able to click on the links

Feature: Mahara users can allow their tagged blogs tags to be copied

As a mahara user
I need to copy a tagged blog block

Feature: Creating a page with stuff in it

In order to have a portfolio
As a user I need navigate to a portfolio
So I can create a page and add content to it

Feature: Creating, sharing and deleting skins

As a user
I want to create a new skin, share a skin and delete a skin

Feature: To go onto the Mahara website

In order to go to a deleted wall post
As an admin
So I can see if the correct message shows

Feature: Enable/disable external resources to display in pages

In order to control external resources displayed in mahara pages
As an admin
For security reason, I can enable/disable the setting "Disable external resources" in
"Site configuration" page

Feature: Add block with files for download

As a user
I want to add a download block to my page
To make my files available for download

Feature: Creating a journal

In order write in my journal
As an admin
I need to have a journal

Feature: Editing a profile page

In order to edit a profile
As an admin I need to go to Content
So I can edit the admin profile and picture

Feature: Edit the site default portfolio page

In order to update the site default portfolio page
As an admin
I can edit the site default portfolio page
As a user
I can create a new page from the site default portfolio page

Feature: Site admin includes special blocks for the "Profile" site template and the "Dashboard" site template Bug (1805766)

1. Site admin set up "Dashboard template" should include the following:
--- a. My friends block
--- b. My Groups block
--- c. My Portfolios block (already on template by default)
--- d. Pages I am watching block (already on template by default)
2. Site admin verify "Profile template" includes "Wall" block which is already on template by default
3. Verify that only one block of a certin type can be added to a template page

Feature: Editing my journal

In order to edit my journal
As an user
I need to create a journal

Feature: Added ID's for text blocks

In order to change the settings of a block
As an admin
I need to be able to click on delete and config of a block

Feature: Embedded media block

As a person
I want to add an embedded media block to my page
So I can include audio and video content

Feature: Rename file and add description. Create folder and add files

As a user
I want to be able to rename files and add descriptions
So that I can manage my content

Feature: Creating/deleting an image block

As a user
I want to add and remove image blocks from my page
So I can control the content

Feature:

Feature: Import and export skins

As a user
I want to import and export skins created in release 20.10
so that I can create and use backups of my skins

Feature: Add journal blocktypes to a page

In order to make sure they appear on the page
when added by a user

Feature: Creating a journal entry and configuring the form

In order to change the configuration of my Journal entry
As a user
So I can benefit from the different settings

Feature: Move posts between forums within groups

In order to move posts between forum
As an admin create a group with a forum
So I can create different posts and move them around

Feature: The "My portfolios" block

In order to be able to see a list of my pages and collections on my dashboard
As as admin
So I have fast access to them

Feature: Creating folders and subfolders with images inside

In order to organise my files
As an user I need to create folders with other folders inside
So I can add files to them

Feature: Looking at the "Portfolios shared with me" (newviews) block on my dashboard

In order to see new pages across the site
So I can know what people are up to

Feature: Adding a Note to a page

In order to be able to write notes on my portfolio
As a student
I need to be able to add a Note block to my portfolio

Feature: Testing Behat's functionality

In order to be able to use every functionality in Mahara is working correct
As an admin I need to log in
And test every link/file/button/checkbox etc. possible

Feature: Interacting with the peer assessment and signoff blocks

As an author
I want to add a peer assessment and signoff block to my page
So I can get peer assessment before signing off the page
As a peer
I want to add a peer assessment to the page
As a manager
I want to verify the page

Feature: Adding a placeholder block to a page

As a student
I need to be able to add a placeholder block to my portfolio
and then change it to be a block of my choosing
As an admin I need to be able to alter the order of blocks
to make more popular ones list first

Feature: Creating a plan and adding a number of tasks to the plan

As a user
In order to test the pagination of the plan

Feature: Profile block displays correctly; add/delete profile picture,

As a user
I want to add a profile block to my page
And ensure it displays my name, email and profile picture correctly
Additionally, this is a test for adding/deleting a profile picture

Feature: Editing a Resume page

In order to edit a resume page
As a user I need to go to Content
So I can edit the resume page

Feature: Searching by person in "Shared with me"

In order to search by name on the shared with me page
As an admin I need to create accounts
So I can search for them by name

Feature: Check Secret URL functionality

1) Log in and create seceret URL
2) Verify copy icon button is displayed
3) Verify that Secret URL was created

Feature: Create a site portfolio page with template blocks

In order to create a site portfolio page
As an admin
I check the templates cannot be shared then create a site page from the Page template with an added profile block
As a user
I can copy the site page and have the block pre-populated with information.

Feature: Adding Some HTML to a page

As a user when I add some HTML
to a page I want to check it
displays correctly

Feature: Creating pages with blocks

As a user
I want to add multiple pages with a selection of blocks as a background step
As a group admin
I want to add a page with blocks as a background step

Feature: Creating/deleting a text block

As a user
I want to add and remove text blocks from my page
So I can control the content

Feature: Creating versions of a page

As a user
I want to be able to view older versions of my page on a timeline
So I can control the content

Feature: The wall block should send out notifications

In order to make it easier for the wall owner to know about new wall posts
So they can respond to those new wall posts


Feature: Adding journals to institution level

In order to use journals at an institution level
As a person and admin
So I can create journals to share on pages

  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm |
    | instone | Institution One | ON | OFF |
    | insttwo | Institution Two | ON | OFF |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page mahara_01 | Page 01 | institution | mahara |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • When I choose "Journals" in "Configure site" from administration menu
  • Then I should see "There are no site journals."
  • When I click on "Add one"
  • Then I should see "New site journal: Journal settings"
  • And I move backward one page
  • And I click on "Create journal"
  • And I should see "New site journal:"
  • And I fill in "Title" with "Site Journal 1"
  • And I set the following fields to these values:

    | Description | The first mahara institution journal |

  • And I click on "Create journal"
  • Then I should see "Site journal 1"
  • And I click on "Create journal"
  • And I fill in "Title" with "Site Journal 2"
  • And I set the following fields to these values:

    | Description | The second mahara institution journal |

  • And I click on "Create journal"
  • Then I should see "Site journal 2"
  • When I choose "Journals" in "Institutions" from administration menu
  • Then I should see "There are no journals in this institution."
  • When I click on "Add one"
  • Then I should see "New \"Institution One\" journal: Journal settings"
  • And I move backward one page
  • And I click on "Create journal"
  • And I should see "New \"Institution One\" journal:"
  • And I fill in "Title" with "Institution One Journal 1"
  • And I set the following fields to these values:

    | Description | The Institution One journal |

  • And I click on "Create journal"
  • Then I should see "Institution One Journal 1"
  • And I click on "Create journal"
  • And I fill in "Title" with "Institution One Journal 2"
  • And I set the following fields to these values:

    | Description | Another Institution One journal |

  • And I click on "Create journal"
  • Then I should see "Institution One Journal 2"
  • And I select "Institution Two" from "institutionselect_institution"
  • And I should not see "Institution One Journal 1"
  • And I click on "Create journal"
  • And I should see "New \"Institution Two\" journal:"
  • And I fill in "Title" with "Institution Two Journal 1"
  • And I set the following fields to these values:

    | Description | The Institution Two journal |

  • And I click on "Create journal"
  • Then I should see "Institution Two Journal 1"
  • And I click on "New entry"
  • And I should see "New journal entry in journal \"Institution Two Journal 1\""
  • And I fill in "Title *" with "Journal entry 1"
  • And I set the following fields to these values:

    | Entry * | The contents of this entry |

  • And I click on "Save entry"
  • Then I should see "Journal entry saved"
  • And I click on "New entry"
  • And I fill in "Title *" with "Journal entry 2"
  • And I set the following fields to these values:

    | Entry * | The contents of this entry |

  • And I click on "Add a file"
  • And I attach the file "Image1.jpg" to "File"
  • Then I should see "Upload of Image1.jpg complete"
  • When I close the dialog
  • And I click on "Save entry"
  • Then I should see "Journal entry 1"
  • And I should see "Journal entry 2"
  • And I delete the "Journal entry 1" row
  • Then I should not see "Journal entry 1"
  • Given the following "institutions" exist:

    | name | displayname | registerallowed | registerconfirm |
    | instone | Institution One | ON | OFF |
    | insttwo | Institution Two | ON | OFF |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page mahara_01 | Page 01 | institution | mahara |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Journals" in "Configure site" from administration menu
  • And I click on "Create journal"
  • And I set the following fields to these values:

    | Title * | Site journal 1 |
    | Description | Contents of site journal 1 |

  • And I click on "Create journal"
  • And I click on "New entry"
  • And I fill in "Title *" with "Spongebob"
  • And I set the following fields to these values:

    | Entry * | *)_4442)&@*#&^%%!+_()**&gha~gsd |

  • And I click on "Save entry"
  • And I should see "Journal entry saved"
  • And I should see "Spongebob"
  • And I choose "Portfolios" in "Configure site" from administration menu
  • And I click on "Edit" in "Page mahara_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Journal"
  • And I select the radio "Site journal 1"
  • And I select "Others will get their own copy of your journal" from "Block copy permission"
  • And I click on "Save"
  • And I scroll to the id "main-nav"
  • And I click on "Share" in the "Toolbar buttons" "Nav" property
  • And I select "Registered people" from "accesslist[0][searchtype]"
  • And I click on "Advanced options"
  • And I set the following fields to these values:

    | Allow copying | 1 |
    | Copy into new accounts | 1 |

  • And I click on "Save"
  • And I choose "Add an account" in "People" from administration menu
  • And I fill in the following:

    | First name * | Pete |
    | Last name * | Mc |
    | Email * | UserA@example.org |
    | Username * | UserA |
    | Password * | KKJhh$$67686 |

  • And I scroll to the center of id "adduser_submit"
  • And I click on "Create account"
  • And I click on "Log in as this person"
  • And I click on "log in anyway"
  • And I choose "Portfolios" in "Create" from main menu
  • Then I should see "Page mahara_01"
  • And I choose "Journals" in "Create" from main menu
  • And I click on "Copy of Site journal 1"
  • Then I should see "Spongebob"

Feature: Adding pages to a collection

In order to add pages to a collection
As an normal member I need pages
So I can add them to the collection

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • Given the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserA_03 | Page 03 | user | UserA |
    | Page UserA_04 | Page 04 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Collection" in the dialog
  • And I fill in the following:

    | Collection name | Test Collection |
    | Collection description | Test |

  • And I click on "Next: Edit collection pages"
  • And I click on "All"
  • Then I click on "Add pages"
  • And I should see "Page UserA_01"
  • And I should see "Page UserA_04"
  • And I choose "Export" in "Manage" from main menu
  • And I select the radio "Just some of my pages"
  • And I should see "Pages to export"
  • And I select the radio "Just some of my collections"
  • And I should see "Collections to export"
  • And I select the radio "All my data"
  • And I should not see "Pages to export"
  • And I should not see "Collections to export"
  • And I choose "Shared by me" in "Share" from main menu
  • And I should see "Collection name"
  • And I should not see "Page title"
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I should not see "Collection name"
  • And I should see "Page title"
  • And I click on "Collections"
  • And I click on "Edit access"
  • And I select "Registered people" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I set the following fields to these values:

    | Page title | New page |
    | Page description | testing |

  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Manage" in "Test Collection" card menu
  • And I click on "All"
  • And I click on "Add pages"
  • And I should see "1 page added to collection"

Feature: Mahara users can create their blogs

As a mahara user
I need to create blogs

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Journals" in "Create" from main menu
  • Then I should see "No entries yet."
  • When I click on "Add one"
  • Then I should see "New journal entry in journal"
  • And I move backward one page
  • And I choose "Preferences" in "Setting" from account menu
  • And I fill in the following:

    | tagssideblockmaxtags | 10 |

  • And I enable the switch "Multiple journals"
  • And I click on "Save"
  • When I go to "artefact/blog/index.php"
  • And I should see "Journals"
  • And I wait "1" seconds
  • When I click on "Angela User's Journal"
  • And I click on "Settings" in the "Top right button group" "Nav" property
  • When I fill in the following:

    | Title | Angela User's Best Journal |

  • And I fill in "This is the edited description" in first editor
  • And I fill in select2 input "editblog_tags" with "Angela" and select "Angela"
  • And I click on "Save settings"
  • Then I should see "Angela User's Best Journal"
  • When I choose "Journals" in "Create" from main menu
  • And I click on "Create journal"
  • And I fill in the following:

    | title | My new journal |

  • And I fill in select2 input "newblog_tags" with "blog" and select "blog"
  • And I click on "Create journal"
  • Then I should see "My new journal"
  • Given I click on "My new journal"
  • And I click on "New entry"
  • And I set the following fields to these values:

    | Title | Journal entry 1 |
    | Entry | This is a test |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "blogentry" and select "blogentry"
  • And I click on "Save entry"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Tagged journal entries"
  • And I fill in select2 input "instconf_tagselect" with "blogentry" and select "blogentry"
  • And I click on "Save"
  • And I wait "1" seconds
  • Then I should see "Journal entries with tag \"blogentry\""
  • And I choose "Journals" in "Create" from main menu
  • And I click on "My new journal"
  • And I click on "Delete \"Journal entry 1\""
  • And I choose "Journals" in "Create" from main menu
  • And I should see "My new journal No entries yet."
  • And I click on "Delete \"My new journal\""
  • Then I should not see "My new journal"

Feature: Adding a pdf to a page

As a student
I need to be able to add a pdf block to my portfolio
and check it is visible on the page

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "PDF"
  • And I fill in the following:

    | Block title | Mahara about PDF |

  • And I click on "File" in the "#instconf" "css_element"
  • And I attach the file "mahara_about.pdf" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • Then I should see "Mahara about PDF"

Feature: Adding tags and Verifying them

In order to add a tag
As an UserA I need to be able to go Content
So I can create a file and tag

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | test01@example.com | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | test02@example.com | Albert | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |

  • And the following "blocks" exist:

    | title | type | page | retractable | updateonly | data |
    | Portfolios shared with me | newviews | Dashboard page: UserA | no | yes | limit=5;user=1;friend=1;group=1;loggedin=1;public=1 |
    | Portfolios shared with me | newviews | Dashboard page: UserB | no | yes | limit=5;user=1;friend=1;group=1;loggedin=1;public=1 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Files" in "Create" from main menu
  • And I set the following fields to these values:

    | Create folder | folder1 |

  • And I scroll to the base of id "files_filebrowser_createfolder"
  • And I click on "Create folder"
  • And I click on "Edit folder \"folder1\""
  • And I set the following fields to these values:

    | 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 "My tag" and select "My tag"
  • And I click on "Save changes"
  • And I choose "Journals" in "Create" from main menu
  • And I click on "New entry"
  • And I set the following fields to these values:

    | Title * | Journal one |
    | Entry | This is a test |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "blue" and select "blue"
  • And I click on "Save entry"
  • And I choose "Plans" in "Create" from main menu
  • And I click on "New plan"
  • And I fill in the following:

    | Title * | Plan 9 from outer space |
    | Description | Woooo |

  • And I scroll to the base of id "addplan_tags_container"
  • And I fill in select2 input "addplan_tags" with "blue" and select "blue"
  • And I click on "Save plan"
  • And I click on "New task"
  • And I fill in the following:

    | Title * | Task one |

  • And I fill in "Completion date" with "tomorrow" date in the format "Y/m/d"
  • And I scroll to the base of id "edittask_tags_container"
  • And I fill in select2 input "edittask_tags" with "blue" and select "blue"
  • And I click on "Save task"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I fill in select2 input "settings_tags" with "blue" and select "blue"
  • And I fill in select2 input "settings_tags" with "My tag" and select "My tag"
  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_02" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I fill in select2 input "settings_tags" with "#orange" and select "#orange"
  • And I fill in select2 input "settings_tags" with "My tag" and select "My tag"
  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I fill in the following:

    | Block title | Note Block 3304 |

  • And I fill in select2 input "instconf_tags" with "@black" and select "@black"
  • And I fill in select2 input "instconf_tags" with "My tag" and select "My tag"
  • And I click on "Save" in the "Submission" "Modal" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I fill in the following:

    | Block title | Text Block 101 |

  • And I fill in select2 input "instconf_tags" with "ébrown" and select "ébrown"
  • And I fill in select2 input "instconf_tags" with "My tag" and select "My tag"
  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "One résumé field"
  • And I fill in select2 input "instconf_tags" with "êyellow" and select "êyellow"
  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "External media"
  • And I fill in "URL or embed code" with "https://www.youtube.com/embed/VeS1iqQ6VIc"
  • And I fill in select2 input "instconf_tags" with "ègreen" and select "ègreen"
  • And I fill in select2 input "instconf_tags" with "My tag" and select "My tag"
  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • Then I click on "Tags" in the "Tags block" "Blocks" property
  • And I should see "blue" in the "Search results for all tags" "Tags" property
  • And I should see "@black" in the "Search results for all tags" "Tags" property
  • And I should see "#orange" in the "Search results for all tags" "Tags" property
  • And I should see "&red" in the "Search results for all tags" "Tags" property
  • And I should see "ébrown" in the "Search results for all tags" "Tags" property
  • And I should see "ègreen" in the "Search results for all tags" "Tags" property
  • And I should see "êyellow" in the "Search results for all tags" "Tags" property
  • And I click on "blue"
  • And I should see "Journal one"
  • And I should see "woooo"
  • And I should see "task one"
  • And I click on "#orange"
  • And I should see "Page UserA_02"
  • And I should not see "Text Block 101"
  • Given I click on "Page UserA_02"
  • And I click on "Edit"
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I clear value "#orange (1)" from select2 field "settings_tags"
  • And I click on "Save"
  • And I display the page
  • Then I should not see "#orange"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I fill in the following:

    | Page title | Create portfolio via tags feature |

  • And I fill in "Create portfolio via tags feature description" in first editor
  • 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."
  • And I fill in select2 input "settings_createtags" with "blue" and select "blue"
  • When I click on "Save"
  • Then I should see "Tagged journal entries"
  • And I should see "Plans"
  • When I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I fill in select2 input "settings_createtags" with "@black" and select "@black"
  • And I click on "Save"
  • Then I should see "Note Block 3304"
  • When I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I fill in select2 input "settings_createtags" with "ébrown" and select "ébrown"
  • And I click on "Save"
  • When I choose "Shared by me" in "Share" from main menu
  • And I click on "Edit access" in "Page UserA_01" row
  • And I set the select2 value "Page UserA_01, Page UserA_02, Create portfolio via tags feature" for "editaccess_views"
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I wait "2" seconds
  • When I click on "Page UserA_02"
  • And I click on "My tag"
  • Then I should see "Tagged content of Angela User"
  • And I should see "External media"
  • Then I should see "Note Block 3304"
  • Then I should see "Page UserA_01"
  • Then I should see "Page UserA_02"
  • Then I should see "Text Block 101"

Feature: Mahara people can view comments and details of their content on pages

As a person
I want to view details and comments of my content on pages

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Betty | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I set the field "Block title" to "Image Block"
  • And I click on blocktype "Image"
  • And I expand the section "Image"
  • And I attach the file "Image1.jpg" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • And I click on "Details"
  • And I should see "Add comment" in the "Block header" "Blocks" property
  • And I should see "Details" in the "Block header" "Blocks" property
  • When I click on "Add comment"
  • And I should see "Image1.jpg" in the "Modal header" "Modal" property
  • And I should see "Preview" in the "Modal content" "Modal" property
  • And I fill in "This is a comment in a modal" in editor "Comment"
  • And I click on "Comment"
  • And I should see "Comment submitted"
  • And I should see "Comments (1) and details" in the "Block header" "Blocks" property
  • When I click on "Comments (1) and details"
  • And I should see "This is a comment in a modal"
  • And I delete the "This is a comment in a modal" row
  • And I wait "1" seconds
  • Then I should see "Comment removed" in the "Message" "Modal" property
  • And I close the dialog
  • And I should see "Add comment"
  • And I should see "Details" in the "Block header" "Blocks" property
  • When I click on "Add comment"
  • And I should not see "Comment removed"
  • And I click on "Comment"
  • Then I should see "There was an error with submitting this form. Please check the marked fields and try again." in the "Message" "Modal" property
  • And I close the dialog
  • And I click on "Edit" in the "Page action buttons" "Views" property
  • And I configure the block "Image Block"
  • And I wait "1" seconds
  • And I expand the section "Image1.jpg"
  • And I click on "Edit file \"Image1.jpg\""
  • And I scroll to the base of id "instconf_artefactid_edit_allowcomments"
  • And I should see "Comments"
  • When I disable the switch "Comments"
  • And I click on "Save changes"
  • And I close the dialog
  • And I click on "Display page" in the "Page action buttons" "Views" property
  • And I should see "Details" in the "Block header" "Blocks" property
  • And I should not see "Add comment" in the "Block header" "Blocks" property
  • And I click on "Details" in the "Block header" "Blocks" property
  • And I should see "Preview" in the "Modal content" "Modal" property
  • And I should not see "Add comment" in the "Block header" "Blocks" property
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Betty | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I set the field "Block title" to "File(s) to Download Block"
  • And I click on blocktype "File(s) to download"
  • And I expand the section "Files"
  • And I attach the file "Image2.png" to "File"
  • And I attach the file "mahara_about.pdf" to "File"
  • And I click on "Edit file \"mahara_about.pdf\""
  • When I disable the switch "Comments"
  • And I click on "Save changes"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I click on "Display page" in the "Page action buttons" "Views" property
  • And I click on "Details" in the "Page action buttons" "Views" property
  • Then the "Image2.png" row should contain display button "Details"
  • And the "Image2.png" row should contain display button "Add comment"
  • And the "mahara_about.pdf" row should contain display button "Details"
  • And the "mahara_about.pdf" row should not contain display button "Add comment"

Feature: Add notes using content from an existing note (Bugs 1710988 & 1044878)

As a Person
I want to add portfolio page note content using an existing note
So that I can easily keep my portfolio pages up to date

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.com | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I click on "Page UserA_01"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I set the following fields to these values:

    | Block title | Note page1 block1 original title |
    | Block content | This is page1 block1 original content |

  • And I click on "Save" in the "Submission" "Modal" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I click on "Use content from another note"
  • And I select the radio "Note page1 block1 original title"
  • And I should see "If you edit the text of this block, it will also be changed in 1 other block(s) where it appears. Make a copy"
  • And I click on "Make a copy"
  • And I should not see "If you edit the text of this block, it will also be changed in 1 other block(s) where it appears. Make a copy"
  • And I should see "Paragraph" in the "Tinymce editor menu" "Tinymce" property
  • And I should see "Note page1 block1 original title"
  • And I should see "This is page1 block1 original content"
  • And I set the following fields to these values:

    | Block title | Note page1 block2 title |
    | Block content | This is only a COPY of page1 block1 original content |

  • And I click on "Save" in the "Submission" "Modal" property
  • And I should see "This is page1 block1 original content" in the block "Note page1 block1 original title"
  • And I should see "This is only a COPY of page1 block1 original content" in the block "Note page1 block2 title"
  • When I am on homepage
  • And I click on "Page UserA_02"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I click on "Use content from another note"
  • And I select the radio "Note page1 block1 original title"
  • And I should see "If you edit the text of this block, it will also be changed in 1 other block(s) where it appears. Make a copy"
  • And I set the following fields to these values:

    | Block title | Note page2 block1 using original note content title |

  • And I click on "Save" in the "Submission" "Modal" property
  • And I scroll to the top
  • And I should see "This is page1 block1 original content" in the block "Note page2 block1 using original note content title"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I click on "Use content from another note"
  • And I select the radio "Note page1 block1 original title"
  • And I should see "If you edit the text of this block, it will also be changed in 2 other block(s) where it appears. Make a copy"
  • And I scroll to the base of id "instconf_edit_container"
  • And I set the following fields to these values:

    | Edit all copies of this note | 1 |

  • And I set the following fields to these values:

    | Block title | Note page2 block2 title - CANCEL original note changes |
    | Block content | This is page2 block2 original content change will be CANCELLED |

  • And I close the dialog
  • And I should see "This is page1 block1 original content" in the block "Note page2 block1 using original note content title"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I click on "Use content from another note"
  • And I select the radio "Note page1 block1 original title"
  • And I should see "If you edit the text of this block, it will also be changed in 2 other block(s) where it appears. Make a copy"
  • And I set the following fields to these values:

    | Block title | Note page2 block2 title AND update original title |
    | Block content | This is page1 block1 original content UPDATED NOW! |

  • And I click on "Save" in the "Submission" "Modal" property
  • And I scroll to the top
  • And I should see "This is page1 block1 original content UPDATED NOW!" in the block "Note page2 block1 using original note content title"
  • And I should see "This is page1 block1 original content UPDATED NOW!" in the block "Note page2 block2 title AND update original title"
  • When I am on homepage
  • And I click on "Page UserA_01"
  • And I should see "This is page1 block1 original content UPDATED NOW!" in the block "Note page1 block1 original title"
  • And I should see "This is only a COPY of page1 block1 original content" in the block "Note page1 block2 title"

Feature: Previewing copy a page or collection and then copying it

In order to use the pop out window on copy a page or collection
As an admin/user
I need to be able to click on the links

  • Given the following "pages" exist:

    | title | description | ownertype | ownername | tags |
    | Page admin_01 | Page 01 | admin | admin | page,one |
    | Page admin_02 | Page 02 | admin | admin | page,two |
    | Page admin_03 | Page 03 | admin | admin | page,three |

  • Given the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection admin_01 | Collection 01 | user | admin | Page admin_01, Page admin_03 |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Copy"
  • And I click on "Collection admin_01"
  • And I should see "Collection admin_01 by admin"
  • And I click on "Close"
  • Then I should not see "Collection admin_01 by admin"
  • When I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page admin_02" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the field "Block title" to "Text Block 1"
  • And I set the field "Block content" to "Here is a new block."
  • And I fill in select2 input "instconf_tags" with "block" and select "block"
  • And I click on "Save"
  • And I display the page
  • And I click on "More options"
  • And I click on "Copy"
  • And I click on "Save"
  • And I display the page
  • And I should see "Page admin_02 v.2"
  • And I should see "Tags: block, page, two"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Copy"
  • And I click on "Copy page" in "Page admin_02" row
  • And I click on "Save"
  • And I should see "Here is a new block."
  • When I choose "Portfolios" in "Create" from main menu
  • And I click on "Manage" in "Collection admin_01" card menu
  • And I check "Page admin_02"
  • And I click on "Add pages"
  • And I should see "1 page added to collection"
  • And I click on "Next: Edit access"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Collection admin_01"
  • And I click on "More options"
  • And I click on "Copy"
  • And I click on "Collection" in the "#copyview-form" "css_element"
  • And I click on "Next: Edit collection pages"
  • And I click on "Next: Edit access"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Copy"
  • And I click on "Copy collection" in "Collection admin_01" row
  • And I click on "Next: Edit collection pages"
  • And I click on "Next: Edit access"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Collection admin_01 v.2"
  • And I click on "Next page"
  • And I click on "Next page"
  • Then I should see "Text Block 1"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Collection admin_01 v.3"
  • And I click on "Next page"
  • And I click on "Next page"
  • Then I should see "Text Block 1"

Feature: Mahara users can allow their tagged blogs tags to be copied

As a mahara user
I need to copy a tagged blog block

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "journalentries" exist:

    | owner | ownertype | title | entry | blog | tags | draft |
    | UserA | user | Entry one | This is journal entry one | | blog,one | 0 |
    | UserA | user | Entry two | This is journal entry two | | blog,two | 0 |
    | UserB | user | UserB entry | This is a journal entry for UserB | | blog,one | 0 |

  • And the following "blocks" exist:

    | title | type | page | retractable | updateonly | data |
    | Portfolios shared with me | newviews | Dashboard page: UserB | no | yes | limit=5;user=1;friend=1;group=1;loggedin=1;public=1 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Tagged journal entries"
  • And I fill in select2 input "instconf_tagselect" with "blog" and select "blog"
  • And I fill in select2 input "instconf_tagselect" with "one" and select "one"
  • And I fill in select2 input "instconf_tagselect" with "-two" and select "two"
  • And I select "Others will get a copy of the block configuration" from "Block copy permission"
  • And I click on "Save"
  • And I scroll to the id "main-nav"
  • And I click on "Share" in the "Toolbar buttons" "Nav" property
  • And I click on "Advanced options"
  • And I enable the switch "Allow copying"
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Page UserA_01"
  • And I click on "More options"
  • And I click on "Copy"
  • And I click on "Save"
  • Then I should see "Journal entries with tags \"blog\", \"one\" but not tag \"two\""
  • And I should see "Entry one"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I scroll to the id "editdashboard"
  • And I click on "Page UserA_01"
  • And I click on "More options"
  • And I click on "Copy"
  • And I click on "Save"
  • Then I should see "Journal entries with tags \"blog\", \"one\" but not tag \"two\""
  • And I should see "UserB entry"

Feature: Creating a page with stuff in it

In order to have a portfolio
As a user I need navigate to a portfolio
So I can create a page and add content to it

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "blocks" exist:

    | title | type | page | retractable | updateonly | data |
    | Portfolios shared with me | newviews | Dashboard page: UserA | no | yes | limit=5;user=1;friend=1;group=1;loggedin=1;public=1 |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I choose "Portfolios" in "Create" from main menu
  • And I scroll to the base of id "addview-button"
  • And I should see "Portfolios" in the "H1 heading" "Common" property
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I fill in the following:

    | Page title | Test view |
    | Page description | First description |

  • When I click on "Advanced"
  • Then I should see "Instructions"
  • And I should see "Prevent removing of blocks"
  • And I click on "Save"
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I fill in the following:

    | Page title | This is the edited page title |
    | Page description | This is the edited description |

  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "File(s) to download"
  • And I click on "Save" in the "Submission" "Modal" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Recent journal entries"
  • And I click on "Save" in the "Submission" "Modal" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Profile information"
  • And I click on "Save" in the "Submission" "Modal" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "External media"
  • And I click on "Remove" in the "Submission" "Modal" property
  • And I display the page
  • And I should see "Updated on" in the "Last updated" "Views" property
  • And I should see the date "today" in the "Last updated" "Views" property with the format "d F Y"
  • Then I should see "This is the edited page title"
  • And I should not see "This is the edited description"
  • And I click on "More options"
  • And I click on "Save to timeline"
  • And I should see "More options"
  • And I click on "More options"
  • Then I should see "Print"
  • And I should see "Delete this page"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Manage access" in "This is the edited page title" card access menu
  • And I click on "Advanced options"
  • And I enable the switch "Allow copying"
  • And I collapse "Advanced options" node
  • And I scroll to the center of id "row-0"
  • And I select "Public" from "General" in shared with select2 box
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I wait "1" seconds
  • Then I should see "This is the edited page title"
  • When I click on "This is the edited page title"
  • And I click on "More options"
  • And I click on "Copy"
  • And I fill in the following:

    | Page title | This is my page now |

  • And I click on "Save"
  • And I click on "Display page"
  • And I should not see "This is the edited description"
  • And I log out
  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "This is the edited page title"
  • And I click on "More options"
  • And I click on "Timeline"
  • Then I should see "Timeline"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Delete" in "This is the edited page" card menu
  • And I should see "Do you really want to delete this page?"
  • And I click on "Yes"
  • Then I should see "Page deleted"
  • And I should not see "This is the edited page"

Feature: Creating, sharing and deleting skins

As a user
I want to create a new skin, share a skin and delete a skin

  • Given the following site settings are set:

    | field | value |
    | skins | 1 |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Betty | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Veronica | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserB_01 | Page 01 | user | UserB |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I attach the file "Image1.jpg" to "File"
  • And I choose "Skins" in "Create" from main menu
  • And I click on "Create skin"
  • And I click on "General"
  • And I set the following fields to these values:

    | Skin title | A fabulous new skin |
    | Skin description | A fabulous new skin |

  • And I select "This is a private skin" from "designskinform_viewskin_access"
  • And I click on "Page" in the "Share tabs" "Misc" property
  • And I scroll to the base of id "designskinform_header_background_image_open_upload_browse_container"
  • And I click on "Add a file"
  • And I click on "Select \"Image1.jpg\""
  • And I select "Repeat both directions" from "designskinform_body_background_repeat"
  • And I click on "Text" in the "Share tabs" "Misc" property
  • And I uncheck "designskinform_view_text_heading_color_optional"
  • And I fill in "Header text colour" with "DEB6D5"
  • And I select "Century Gothic" from "designskinform_view_block_header_font"
  • And I select "Theme default" from "designskinform_view_text_font_family"
  • And I click on "Save"
  • And I should see "A fabulous new skin"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I expand the section "Skin"
  • And I scroll to the base of id "settings_skin_open"
  • Then I select the skin "A fabulous new skin" from "userskins"
  • And I wait "1" seconds
  • And I should see "A fabulous new skin" in the "Current skin" "Misc" property
  • And I click on "Save"
  • And I click on "Display page"
  • And I choose "Skins" in "Create" from main menu
  • And I should see "A fabulous new skin"
  • And I click on "Delete"
  • And I click on "Yes"
  • And I should not see "A fabulous new skin"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I expand the section "Skin"
  • And I should not see "A fabulous new skin"
  • Given the following site settings are set:

    | field | value |
    | skins | 1 |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Betty | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Veronica | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserB_01 | Page 01 | user | UserB |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • Given I choose "Skins" in "Create" from main menu
  • And I click on "Create skin"
  • And I click on "General"
  • And I set the following fields to these values:

    | Skin title | "A fabulous private skin |

  • And I select "This is a private skin" from "designskinform_viewskin_access"
  • And I click on "Save"
  • And I click on "Create skin"
  • And I click on "General"
  • And I set the following fields to these values:

    | Skin title | A fabulous public skin |

  • And I select "This is a public skin" from "designskinform_viewskin_access"
  • And I click on "Save"
  • And I should see "A fabulous private skin"
  • And I should see "A fabulous public skin"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • Given I choose "Skins" in "Create" from main menu
  • And I should see "A fabulous public skin"
  • And I should not see "A fabulous private skin"
  • And I click on "Add \"A fabulous public skin\" to favourites"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserB_01" card menu
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I expand the section "Skin"
  • And I scroll to the base of id "settings_skin_container"
  • And I click on "Favourite skins"
  • Then I select the skin "A fabulous public skin" from "favorskins"
  • And I wait "1" seconds
  • And I should see "A fabulous public skin" in the "Current skin" "Misc" property
  • And I click on "Save"
  • And I click on "Display page"
  • Given the following site settings are set:

    | field | value |
    | skins | 1 |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Betty | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Veronica | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserB_01 | Page 01 | user | UserB |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Skins" in "Create" from main menu
  • And I click on "Create skin"
  • And I click on "General"
  • And I set the following fields to these values:

    | Skin title | Publicskin |
    | Skin description | A fabulous new skin |

  • And I select "This is a public skin" from "designskinform_viewskin_access"
  • And I click on "Save"
  • And I click on "Create skin"
  • And I click on "General"
  • And I set the following fields to these values:

    | Skin title | Privateskin |
    | Skin description | Another fabulous new skin |

  • And I select "This is a private skin" from "designskinform_viewskin_access"
  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I fill in the following:

    | Page title | Public page with a skin that is public |
    | Page description | First description |

  • And I expand the section "Skin"
  • And I scroll to the base of id "settings_skin_open"
  • And I select the skin "Publicskin" from "userskins"
  • And I wait "1" seconds
  • And I click on "Save"
  • And I click on "Share" in the "Page action buttons" "Views" property
  • And I click on "Advanced"
  • And I enable the switch "Allow copying"
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I choose "Portfolios" in "Create" from main menu
  • And I should see "Portfolios" in the "H1 heading" "Common" property
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I fill in the following:

    | Page title | Public page with a skin that is private |
    | Page description | Second description |

  • And I expand the section "Skin"
  • And I scroll to the base of id "settings_skin_open"
  • And I select the skin "Privateskin" from "userskins"
  • And I wait "1" seconds
  • And I click on "Save"
  • And I click on "Share" in the "Page action buttons" "Views" property
  • And I click on "Advanced"
  • And I enable the switch "Allow copying"
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I log out
  • And I log in as "UserB" with password "Kupuh1pa!"
  • When I choose "Shared with me" in "Share" from main menu
  • And I check "Public"
  • And I click on "Search" in the "#search_submit_container" "css_element"
  • And I scroll to the base of id "sharedviewlist"
  • And I click on "Public page with a skin that is public"
  • And I click on "More options" in the "Page action buttons" "Views" property
  • And I click on "Copy"
  • And I expand the section "Skin"
  • And I scroll to the base of id "settings_skins_html_container"
  • Then I should see "Current skin"
  • And I should see "Publicskin"
  • When I choose "Shared with me" in "Share" from main menu
  • And I check "Public"
  • And I click on "Search" in the "#search_submit_container" "css_element"
  • And I scroll to the base of id "sharedviewlist"
  • And I click on "Public page with a skin that is private"
  • And I click on "More options" in the "Page action buttons" "Views" property
  • And I click on "Copy"
  • And I expand the section "Skin"
  • And I scroll to the base of id "settings_skins_html_container"
  • Then I should see "Current skin"
  • And I should not see "Privateskin"

Feature: To go onto the Mahara website

In order to go to a deleted wall post
As an admin
So I can see if the correct message shows

  • Given I log in as "admin" with password "Kupuh1pa!"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And I log out
  • And I log in as "UserA" with password "Kupuh1pa!"
  • When I go to "/blocktype/wall/wall.php?id=9999"
  • Then I should not see "$[[blockinstancenotfound/error]]"

Feature: Enable/disable external resources to display in pages

In order to control external resources displayed in mahara pages
As an admin
For security reason, I can enable/disable the setting "Disable external resources" in
"Site configuration" page

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • When I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I attach the file "Image2.png" to "files_filebrowser_userfile"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Page UserA_01"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | Text block with an internal image |

  • And I click the "Insert/edit image" button in the editor "text"
  • And I expand the section "Image"
  • And I click on "Select \"Image2.png\""
  • And I scroll to the base of id "imgbrowserconf_action_submitimage"
  • And I click on "Submit"
  • And I wait "1" seconds
  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | Text block with an external image |
    | Block content | <p><img title="Open source logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Opensource.svg/744px-Opensource.svg.png" alt="" width="300" /></p> |

  • And I click on "Save"
  • And I display the page
  • Then I should see images within the block "Text block with an internal image"
  • And I should see images within the block "Text block with an external image"
  • And I log out
  • When I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Site options" in "Configure site" from administration menu
  • And I expand the section "Security settings"
  • And I enable the switch "Disable external resources in HTML"
  • And I click on "Update site options"
  • And I log out
  • And I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Page UserA_01"
  • Then I should see images within the block "Text block with an internal image"
  • And I should not see images within the block "Text block with an external image"

Feature: Add block with files for download

As a user
I want to add a download block to my page
To make my files available for download

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "File(s) to download"
  • And I expand "Files" node in the "File download modal" "Modal" property
  • And I attach the file "mahara_about.pdf" to "File"
  • And I attach the file "Image1.jpg" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • And I click on "mahara_about.pdf" in the "File download heading 1" "Files" property
  • Then I should see "PDF document"
  • And I should see "Download"
  • And I close the dialog
  • And I click on "Image1.jpg" in the "File download heading 2" "Files" property
  • Then I should see "JPEG Image"
  • And I should see "Download"
  • Given I choose "Files" in "Create" from main menu
  • And I click on "Edit" in "mahara_about.pdf" row
  • And I set the field "Name" to "renamed.pdf"
  • And I set the field "Description" to "I hope I can see my saved changes"
  • And I fill in select2 input "files_filebrowser_edit_tags" with "&red" and select "&red"
  • When I click on "Save changes"
  • Then I should see "renamed.pdf"
  • And I should see "I hope I can see my saved changes"
  • When I reload the page
  • Then I should not see "mahara_about.pdf"
  • When I choose "Portfolios" in "Create" from main menu
  • And I click on "Page UserA_01"
  • Then I should see "renamed.pdf"
  • Then I should not see "mahara_about.pdf"

Feature: Creating a journal

In order write in my journal
As an admin
I need to have a journal

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Britta | Briggs | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Journals" in "Create" from main menu
  • And I click on "New entry"
  • And I fill in the following:

    | Title * | My diary entry one |

  • And I set the following fields to these values:

    | Entry * | I love my mum |
    | Draft | 1 |
    | Allow comments | 0 |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "mildred" and select "mildred"
  • And I click on "Save entry"
  • Then I should see "Journal entry saved"
  • And I should see "Draft"
  • Given I click on "Publish"
  • Then I should see "Published"
  • And I click on "New entry"
  • And I fill in the following:

    | Title * | My diary entry two |

  • And I set the following fields to these values:

    | Entry | I love my dad |
    | Draft | 0 |
    | Allow comments | 0 |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "george" and select "george"
  • And I click on "Save entry"
  • Given I click on "Edit" in "My diary entry one" row
  • And I clear value "mildred (1)" from select2 field "editpost_tags"
  • And I click on "Save entry"
  • And I should not see "mildred"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Tagged journal entries"
  • And I fill in select2 input "instconf_tagselect" with "george" and select "george"
  • And I click on "Save"
  • And I wait "1" seconds
  • Then I should see "My diary entry two"
  • And I go to portfolio page "Page UserA_01"
  • And I click on "Edit"
  • And I click on "Share" in the "Toolbar buttons" "Nav" property
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I log out
  • And I log in as "UserB" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_01"
  • Then I should see "My diary entry two"
  • And I should not see "My diary entry one"

Feature: Editing a profile page

In order to edit a profile
As an admin I need to go to Content
So I can edit the admin profile and picture

  • Given I log in as "admin" with password "Kupuh1pa!"
  • When I choose "Profile" from account menu
  • And I click on "About me"
  • And I fill in the following:

    | First name | Test |
    | Last name | Admin |
    | Student ID | jk74020n |
    | Display name | Test Admin |

  • And I scroll to the top
  • And I click on "Contact information"
  • And I click on "Add email address"
  • And I fill in the following:

    | addnewemail | example22@example.org |
    | Official website address | www.catalyst.net.nz |
    | Personal website address | www.stuff.co.nz |
    | Blog address | www.blog.com |
    | Postal address | 150 Willis Street |
    | Town | Wellington |
    | City/region | CBD |
    | Home phone | 04928375 |
    | Business phone | 040298375 |
    | Mobile phone | 0272093875482 |
    | Fax number | 09237842 |

  • And I select "South Sudan" from "Country"
  • And I click on "Save profile"
  • And I should see "Profile saved successfully"
  • And I click on "Social media"
  • And I click on "New social media account"
  • And I fill in the following:

    | Enter URL | https://git.mahara.org/mahara/mahara |
    | Your URL or username | https://twitter.com/MaharaProject |

  • And I click on "Save"
  • And I choose "Dashboard" from main menu
  • And I should see "Test Admin"
  • And I choose "Profile" from account menu
  • And I click on "About me"
  • And the following fields match these values:

    | Student ID | jk74020n |

  • And I fill in the following:

    | First name | Admin |
    | Last name | User |
    | Student ID | |
    | Display name | Admin Account |

  • And I click on "Save profile"
  • And I should see "Profile saved successfully"
  • And I click on "Contact information"
  • And I click on "Add email address"
  • And I fill in the following:

    | Official website address | |
    | Personal website address | |
    | Blog address | |
    | Postal address | |
    | Town | |
    | City/region | |
    | Home phone | |
    | Business phone | |
    | Mobile phone | |
    | Fax number | |

  • And I click on "Save profile"
  • And I should see "Profile saved successfully"
  • And I choose "Dashboard" from main menu
  • And I should see "Admin Account"

Feature: Edit the site default portfolio page

In order to update the site default portfolio page
As an admin
I can edit the site default portfolio page
As a user
I can create a new page from the site default portfolio page

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Configure site" from administration menu
  • And I should see "Page template"
  • And I click on "Edit" in "Page template" card menu
  • And I should see "Drag the 'Plus' button onto the page to create a new block."
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | Sample text block |
    | Block content | <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> |

  • And I click on "Save"
  • And I should see "Sample text block"
  • And I log out
  • And I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I should see "Portfolios"
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I should see "Settings"
  • And I click on "Edit"
  • Then I should see "Lorem Ipsum is simply dummy text of the printing and typesetting industry."

Feature: Site admin includes special blocks for the "Profile" site template and the "Dashboard" site template Bug (1805766)

1. Site admin set up "Dashboard template" should include the following:
--- a. My friends block
--- b. My Groups block
--- c. My Portfolios block (already on template by default)
--- d. Pages I am watching block (already on template by default)
2. Site admin verify "Profile template" includes "Wall" block which is already on template by default
3. Verify that only one block of a certin type can be added to a template page

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Configure site" from administration menu
  • Then I should see "Dashboard template"
  • And I should see "Group homepage template"
  • And I should see "Profile template"
  • And I should see "Page template"
  • When I click on "Edit" in "Dashboard template" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on "Show more"
  • And I click on "Show more"
  • And I click on "Show more"
  • And I wait "1" seconds
  • And I should see "My portfolios" in the "Content types" "Blocks" property
  • And I should see "Pages I am watching" in the "Content types" "Blocks" property
  • And I click on "My friends" in the "Content types" "Blocks" property
  • Then I should see "My friends" in the "Page content" "Views" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "My groups"
  • And I click on "Save"
  • Given I click on "Return to site portfolios"
  • And I click on "Edit" in "Profile template" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Wall"
  • And I click on "Save"
  • Then I should see "Cannot put more than one \"Wall\" block type into a page."

Feature: Editing my journal

In order to edit my journal
As an user
I need to create a journal

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Journals" in "Create" from main menu
  • When I click on "New entry"
  • And I set the following fields to these values:

    | Title | My new journal |
    | Entry | blog |

  • And I click on "Save entry"
  • Then I should see "Journal entry saved"
  • And I click on "Edit" in "My new journal" row
  • And I set the following fields to these values:

    | Title | My new journal |
    | Entry | Jinelle was here Nov 2015 |

  • And I click on "Save entry"
  • And I should see "Jinelle was here Nov 2015"
  • And I should see "Last updated:"

Feature: Added ID's for text blocks

In order to change the settings of a block
As an admin
I need to be able to click on delete and config of a block

  • Given the following site settings are set:

    | field | value |
    | skins | 1 |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Profile page"
  • And I scroll to the base of id "viewh1"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | Ulysses |
    | Block content | <p>Stately, plump Buck Mulligan came from the stairhead, bearing a bowl of lather on which a mirror and a razor lay crossed ...</p> |

  • And I click on "Save"
  • And I wait "1" seconds
  • Then I should see "Buck Mulligan"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | The Sun Also Rises |
    | Block content | <p>Robert Cohn was once middleweight boxing champion of Princeton. Do not think that I am very much impressed by that as a boxing title, but it meant a lot to Cohn...</p> |

  • And I click on "Save"
  • And I wait "1" seconds
  • Then I should see "Robert Cohn"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | 1984 |
    | Block content | <p>It was a bright cold day in April, and the clocks were striking thirteen. Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind...</p> |

  • And I click on "Save"
  • Then I should see "Winston Smith"
  • And I scroll to the top
  • When I configure the block "About me"
  • And I set the following fields to these values:

    | Introduction text | <p>A James Joyce fan</p> |

  • And I click on "Save"
  • Then I should see "James Joyce"
  • And I display the page
  • And I click on "Edit"
  • And I wait "1" seconds
  • When I delete the block "The Sun Also Rises"
  • Then I should not see "Robert Cohn"
  • When I delete the block "1984"
  • And I wait "1" seconds
  • Then I should not see "Winston Smith"
  • When I delete the block "Ulysses"
  • And I wait "1" seconds
  • Then I should not see "Buck Mulligan"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the following fields to these values:

    | Block title | Crime and punishment |
    | Block content | <p>On an exceptionally hot evening early in July a young man came out of the garret in which he lodged in S. Place and walked slowly, as though in hesitation, towards K. bridge...</p> |

  • And I close the config dialog
  • And I scroll to the top
  • Given the following site settings are set:

    | field | value |
    | skins | 1 |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Profile page"
  • And I scroll to the base of id "viewh1"
  • And I click on "Edit"
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I should not see "Basics"
  • And I should see "Skin"
  • And I click on "Save"
  • And I should see "Page saved successfully"
  • And I choose "Dashboard" from main menu
  • And I click on "Edit dashboard"
  • And I click on "Settings" in the "Toolbar buttons" "Nav" property
  • And I should not see "Basics"
  • And I should see "Skin"
  • And I click on "Save"
  • And I should see "Page saved successfully"

Feature: Embedded media block

As a person
I want to add an embedded media block to my page
So I can include audio and video content

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Embedded media"
  • And I click on "Media"
  • And I attach the file "testvid3.mp4" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • And I click on "Play Video"
  • And I wait "3" seconds
  • And I should see "0:00" in the "Videojs time remaining" "Misc" property
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Embedded media"
  • And I click on "Media"
  • And I set the field "Block title" to "mahara.mp3"
  • And I attach the file "mahara.mp3" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • And I should see "mahara.mp3"
  • And I click on "Play Video"
  • And I click on "Pause"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I go to the "blocktype" plugin "file/internalmedia" configuration
  • And I enable the switch "3GPP media file"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Embedded media"
  • And I click on "Media"
  • And I attach the file "testvid1.3gp" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Embedded media"
  • And I click on "Media"
  • And I attach the file "testvid2.mkv" to "File"
  • Then I should see "The file you uploaded was not the correct type for this block."

Feature: Rename file and add description. Create folder and add files

As a user
I want to be able to rename files and add descriptions
So that I can manage my content

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Files" in "Create" from main menu
  • And I attach the file "mahara_about.pdf" to "File"
  • And I click on "Edit \"mahara_about.pdf\""
  • And I set the field "Name" to "renamed.pdf"
  • And I set the field "Description" to "I hope I can see my saved changes"
  • And I click on "Save changes"
  • Then I should see "renamed.pdf"
  • And I should see "I hope I can see my saved changes"
  • And I reload the page
  • And I should not see "mahara_about.pdf"

Feature: Creating/deleting an image block

As a user
I want to add and remove image blocks from my page
So I can control the content

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I set the field "Block title" to "Image Block 1"
  • And I click on blocktype "Image"
  • Then I should see "Image Block 1: Edit"
  • And I expand the section "Image"
  • And I attach the file "Image1.jpg" to "File"
  • Then I should see "Image - Image1.jpg"
  • And I enable the switch "Show description"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • And I should see "Image1.jpg"
  • And I click on "Edit"
  • And I delete the block "Image Block 1"
  • And I display the page
  • Then I should not see "Image Block 1"

Feature:

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Files" in "Create" from main menu
  • And I fill in "Folder1" for "files_filebrowser_createfolder_name"
  • And I click on "Create folder"
  • And I click on "Folder1"
  • And I attach the file "Image1.jpg" to "File"
  • And I attach the file "Image2.png" to "File"
  • And I attach the file "Image3.png" to "File"
  • And I reload the page
  • And I should see "1.5M" in the "Folder1" row
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Image gallery"
  • And I set the field "Block title" to "Image gallery"
  • And I select the radio "Image selection: Display all images from a folder including images uploaded later"
  • And I click on the "Select" "Files" property
  • And I select the radio "Style: Thumbnails (square)"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • Then I should see images within the block "Image gallery"

Feature: Import and export skins

As a user
I want to import and export skins created in release 20.10
so that I can create and use backups of my skins

  • Given the following site settings are set:

    | field | value |
    | skins | 1 |

  • And the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Betty | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Veronica | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserB_01 | Page 01 | user | UserB |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Skins" in "Create" from main menu
  • And I click on "More options"
  • And I click on "Import" in the "Dropdown" "Misc" property
  • And I attach the file "20-10_2ExportedSkins.xml" to "Valid XML file "
  • And I click on "Import" in the "#importskinform_submit_container" "css_element"
  • Then I should see "Skin imported successfully"
  • And I should see "2 skins"
  • And I should see "20-10 SimplePersonalSkin (created Dan)"
  • And I should see "20-10 CompPersSkin (Dan-public)"
  • When I click on "Edit \"20-10 SimplePersonalSkin (created Dan)\""
  • Then the following fields match these values:

    | Skin title | 20-10 SimplePersonalSkin (created Dan) |
    | Skin description | Dan's simple skin (private) - retain all default values except header and page background colours. |
    | Skin access | This is a private skin |

  • And I set the following fields to these values:

    | Skin title | A fabulous new skin |

  • When I click on "Page" in the "Share tabs" "Misc" property
  • Then the "Header background colour" field should contain "#CBF706"
  • When I click on "Text" in the "Share tabs" "Misc" property
  • And I select "This is a private skin" from "designskinform_viewskin_access"
  • And I click on "Page" in the "Share tabs" "Misc" property
  • And I click on "Add a file"
  • And I click on "Select \"sunset-1645103_1920by655.jpg\""
  • And I select "Repeat both directions" from "designskinform_body_background_repeat"
  • And I scroll to the top
  • And I click on "Text" in the "Share tabs" "Misc" property
  • And I uncheck "designskinform_view_text_heading_color_optional"
  • And I fill in "Header text colour" with "DEB6D5"
  • And I select "Century Gothic" from "designskinform_view_block_header_font"
  • And I select "Theme default" from "designskinform_view_text_font_family"
  • And I click on "Save"
  • And I should see "A fabulous new skin"

Feature: Add journal blocktypes to a page

In order to make sure they appear on the page
when added by a user

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | celeste | Kupuh1pa! | celeste@example.com | Celeste | Phobos | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Celeste's Page | All about me | user | celeste |

  • And the following "journals" exist:

    | owner | ownertype | title | description | tags |
    | celeste | user | Mars journal | Recording my Mars Mission | Mars |

  • And the following "journalentries" exist:

    | owner | ownertype | title | entry | blog | tags | draft |
    | celeste | user | I'm going to Mars! | I just passed my exam and am approved for a Mars Mission | Mars journal | Mars | 0 |
    | celeste | user | Spacefood | Spacefood is kind of gross if you don't cook it right | Mars journal | Mars,food | 0 |

  • Given I log in as "celeste" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Celeste's Page" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • Given I click on blocktype "Journal"
  • And I select the radio "Mars journal"
  • And I click on "Save"
  • And I display the page
  • And I wait "1" seconds
  • Then I should see "Spacefood is kind of gross"
  • Given I click on "Edit"
  • Then I should see "New entry"
  • When I click on "New entry"
  • Then I should see "New journal entry in journal \"Mars journal\""
  • When I fill in "Title *" with "Journal entry Added from Block"
  • And I set the following fields to these values:

    | Entry * | The contents of this entry ABCD123 |

  • And I click on "Save entry"
  • Then I should see "Journal entry saved"
  • When I choose "Portfolios" in "Create" from main menu
  • And I click on "Celeste's Page" card menu
  • And I click on "Edit" in "Celeste's Page" card menu
  • Then I should see "Journal entry Added from Block"
  • And I should see "The contents of this entry ABCD123"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | celeste | Kupuh1pa! | celeste@example.com | Celeste | Phobos | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Celeste's Page | All about me | user | celeste |

  • And the following "journals" exist:

    | owner | ownertype | title | description | tags |
    | celeste | user | Mars journal | Recording my Mars Mission | Mars |

  • And the following "journalentries" exist:

    | owner | ownertype | title | entry | blog | tags | draft |
    | celeste | user | I'm going to Mars! | I just passed my exam and am approved for a Mars Mission | Mars journal | Mars | 0 |
    | celeste | user | Spacefood | Spacefood is kind of gross if you don't cook it right | Mars journal | Mars,food | 0 |

  • Given I log in as "celeste" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Celeste's Page" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • Given I click on blocktype "Journal entry"
  • And I select the radio "I'm going to Mars!"
  • And I click on "Save"
  • And I display the page
  • Then I should see "I just passed my exam"
  • And I should not see "Spacefood is kind of gross"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | celeste | Kupuh1pa! | celeste@example.com | Celeste | Phobos | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Celeste's Page | All about me | user | celeste |

  • And the following "journals" exist:

    | owner | ownertype | title | description | tags |
    | celeste | user | Mars journal | Recording my Mars Mission | Mars |

  • And the following "journalentries" exist:

    | owner | ownertype | title | entry | blog | tags | draft |
    | celeste | user | I'm going to Mars! | I just passed my exam and am approved for a Mars Mission | Mars journal | Mars | 0 |
    | celeste | user | Spacefood | Spacefood is kind of gross if you don't cook it right | Mars journal | Mars,food | 0 |

  • Given I log in as "celeste" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Celeste's Page" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • Given I click on blocktype "Recent journal entries"
  • And I select the radio "Mars journal"
  • And I click on "Save"
  • And I display the page
  • Then I should see "Spacefood"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | celeste | Kupuh1pa! | celeste@example.com | Celeste | Phobos | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Celeste's Page | All about me | user | celeste |

  • And the following "journals" exist:

    | owner | ownertype | title | description | tags |
    | celeste | user | Mars journal | Recording my Mars Mission | Mars |

  • And the following "journalentries" exist:

    | owner | ownertype | title | entry | blog | tags | draft |
    | celeste | user | I'm going to Mars! | I just passed my exam and am approved for a Mars Mission | Mars journal | Mars | 0 |
    | celeste | user | Spacefood | Spacefood is kind of gross if you don't cook it right | Mars journal | Mars,food | 0 |

  • Given I log in as "celeste" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Celeste's Page" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • Given I click on blocktype "Tagged journal entries"
  • And I fill in select2 input "instconf_tagselect" with "food" and select "food"
  • And I click on "Save"
  • And I display the page
  • Then I should see "Journal entries with tag \"food\""

Feature: Creating a journal entry and configuring the form

In order to change the configuration of my Journal entry
As a user
So I can benefit from the different settings

  • Given the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page admin_01 | Page 01 | admin | admin |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles |
    | GroupA | admin | GroupA owned by admin | standard | ON | OFF | all |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Journals" in "Create" from main menu
  • And I click on "New entry"
  • And I click on "Save entry"
  • And I should see "There was an error with submitting this form. Please check the marked fields and try again."
  • Given the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page admin_01 | Page 01 | admin | admin |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles |
    | GroupA | admin | GroupA owned by admin | standard | ON | OFF | all |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Journals" in "Create" from main menu
  • And I click on "New entry"
  • And I fill in "Title *" with "Story of my life"
  • And I set the following fields to these values:

    | Allow comments | 0 |
    | Entry | Preventing bugs from appearing :D |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "one" and select "one"
  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "test" and select "test"
  • And I click on "Save entry"
  • And I click on "New entry"
  • And I fill in "Title *" with "Story of my life, part 2"
  • And I set the following fields to these values:

    | Allow comments | 0 |
    | Entry | Testing tags |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "two" and select "two"
  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "test" and select "test"
  • And I click on "Save entry"
  • And I click on "New entry"
  • And I fill in "Title *" with "Story of my life, part 3"
  • And I set the following fields to these values:

    | Allow comments | 0 |
    | Entry | Testing tags some more |

  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "three" and select "three"
  • And I scroll to the base of id "editpost_tags_container"
  • And I fill in select2 input "editpost_tags" with "test" and select "test"
  • And I click on "Save entry"
  • When I choose "Groups" in "Engage" from main menu
  • And I click on "GroupA"
  • And I click on "Journals" in the "Arrow-bar nav" "Nav" property
  • Then I should see "There are no journals in this group."
  • When I click on "Add one"
  • Then I should see "New journal | GroupA"
  • And I move backward one page
  • And I click on "Create journal"
  • And I fill in "Title *" with "My group journal"
  • And I click on "Create journal"
  • And I click on "New entry"
  • And I fill in "Title *" with "My group entry one"
  • And I set the following fields to these values:

    | Entry | I love my mum |

  • And I click on "Save entry"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Page admin_01"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Tagged journal entries"
  • And I set the field "Block title" to "Tagged journal entries"
  • And I scroll to the base of id "instconf_tagselect_container"
  • And I fill in select2 input "instconf_tagselect" with "one" and select "one"
  • And I scroll to the base of id "instconf_tagselect_container"
  • And I fill in select2 input "instconf_tagselect" with "two" and select "two"
  • And I click on "Save"
  • And I scroll to the base of id "column-container"
  • And I configure the block "Tagged journal entries"
  • And I wait "1" seconds
  • And I clear value "one" from select2 field "instconf_tagselect"
  • And I click on "Save"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Recent journal entries"
  • And I check "Admin Account's Journal"
  • And I click on "Save"

Feature: Move posts between forums within groups

In order to move posts between forum
As an admin create a group with a forum
So I can create different posts and move them around

  • And the following "groups" exist:

    | name | owner | grouptype | editroles |
    | Testing Group 1 | admin | standard | all |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Groups" in "Engage" from main menu
  • And I click on "Testing Group 1"
  • And I click on "Forums" in the "Navigation" "Groups" property
  • And I click on "New forum"
  • And I set the following fields to these values:

    | Title | Testing forum 1 |

  • And I fill in "Testing forum" in editor "Description"
  • And I click on "Save"
  • And I click on "Forums" in the "Navigation" "Groups" property
  • And I click on "General discussion"
  • And I click on "New topic"
  • And I set the following fields to these values:

    | Subject | Testing topic 1 |

  • And I fill in "Testing moving topic" in editor "Message"
  • And I click on "Post"
  • And I click on "General discussion"
  • And I should see "Testing topic 1"
  • And I scroll to the base of id "viewforum"
  • And I check "Testing topic 1"
  • And I select "Move to" from "action"
  • And I should see "Testing forum 1"
  • And I click on "Update selected topics"
  • Then I click on "Forums"
  • And I click on "Testing forum 1"
  • And I should see "Testing topic 1"
  • And I click on "Testing topic 1"
  • And I should see "Testing moving topic"
  • And I should see "Posts: 1"

Feature: The "My portfolios" block

In order to be able to see a list of my pages and collections on my dashboard
As as admin
So I have fast access to them

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | page P1A | user | UserA |
    | Page UserA_02 | page P1B | user | UserA |
    | Page UserA_03 | page P2 | user | UserA |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection UserA_01 | Collection 01 | user | UserA | Page UserA_01, Page UserA_02 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I scroll to the id "column-container"
  • And I should see "Collection UserA_01" in the "My portfolios" "Blocks" property
  • And I should see "(2 pages)" in the "My portfolios" "Blocks" property
  • And I should see "Page UserA_03" in the "My portfolios" "Blocks" property
  • Then I should not see "Page UserA_01" in the "My portfolios" "Blocks" property

Feature: Creating folders and subfolders with images inside

In order to organise my files
As an user I need to create folders with other folders inside
So I can add files to them

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Files" in "Create" from main menu
  • And I fill in "Folder1" for "files_filebrowser_createfolder_name"
  • And I click on "Create folder"
  • And I click on "Folder1"
  • And I scroll to the base of id "files_filebrowser_upload_container"
  • And I fill in "Subfolder" for "files_filebrowser_createfolder_name"
  • And I click on "Create folder"
  • And I attach the file "Image1.jpg" to "File"
  • And I should see "Upload of Image1.jpg to Folder1 complete"
  • And I scroll to the base of id 'files_filebrowser_foldernav'
  • And I click on "Home"
  • And I scroll to the base of id "files_filebrowser_upload_container"
  • And I fill in "Folder2" for "files_filebrowser_createfolder_name"
  • And I click on "Create folder"
  • And I click on "Folder2"
  • And I scroll to the base of id "files_filebrowser_upload_container"
  • And I fill in "Subfolder2" for "files_filebrowser_createfolder_name"
  • And I click on "Create folder"
  • And I wait "1" seconds
  • And I click on "Subfolder2"
  • And I attach the file "Image3.png" to "File"
  • And I should see "Upload of Image3.png to Subfolder2 complete"
  • And I click on "Image3.png"
  • And I click on "Close"
  • And I delete the "Image3.png" row
  • And I should see "Image Image3.png deleted"
  • And I scroll to the base of id 'files_filebrowser_foldernav'
  • And I click on "Home"
  • Then I should see "Folder1"
  • And I should see "Folder2"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Folder"
  • And I expand "Folders" node
  • And I click on "Select" in "Folder1" row
  • And I set the field "Block title" to ""
  • And I click on "Save" in the "Submission" "Modal" property
  • And I display the page
  • Then I should see images within the block "Folder1"

Feature: Looking at the "Portfolios shared with me" (newviews) block on my dashboard

In order to see new pages across the site
So I can know what people are up to

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserA_03 | Page 03 | user | UserA |
    | Page UserA_04 | Page 04 | user | UserA |
    | Page UserA_05 | Page 05 | user | UserA |
    | Page UserA_06 | Page 06 | user | UserA |

  • And the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection UserA_01 | Collection 01 | user | UserA | Page UserA_03, Page UserA_04 |
    | Collection UserA_02 | Collection 02 | user | UserA | Page UserA_05, Page UserA_06 |

  • And the following "permissions" exist:

    | title | accesstype |
    | Page UserA_01 | public |
    | Collection UserA_01 | public |

  • And the following "blocks" exist:

    | title | type | page | retractable | updateonly | data |
    | Portfolios shared with me | newviews | Dashboard page: UserB | no | yes | limit=5;user=1;friend=1;group=1;loggedin=1;public=1 |

  • And I log in as "UserB" with password "Kupuh1pa!"
  • Then I should see "Page UserA_01" in the "Portfolios shared with me" "Blocks" property
  • And I should see "Collection UserA_01" in the "Portfolios shared with me" "Blocks" property
  • And I should not see "Page UserA_02" in the "Portfolios shared with me" "Blocks" property
  • And I should not see "Collection UserA_02" in the "Portfolios shared with me" "Blocks" property
  • And I should not see "Page UserA_03" in the "Portfolios shared with me" "Blocks" property

Feature: Adding a Note to a page

In order to be able to write notes on my portfolio
As a student
I need to be able to add a Note block to my portfolio

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I set the following fields to these values:

    | Block title | Note block 1 |
    | Block content | This is a test |

  • And I attach the file "Image2.png" to "userfile[]"
  • And I click on "Save" in the "Submission" "Modal" property
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Note"
  • And I click on "Use content from another note"
  • And I select the radio "Note block 1"
  • And I set the following fields to these values:

    | Block title | Note block 2 |

  • And I click on "Save" in the "Submission" "Modal" property
  • And I scroll to the base of id "column-container"
  • And I should see "This is a test" in the block "Note block 2"
  • And I choose "Notes" in "Create" from main menu
  • And I click on "Note block 1"
  • And I should see "Image2.png"
  • And I click on "Page UserA_01"
  • And I choose "Notes" in "Create" from main menu
  • And I should see "Note block 1"
  • And I delete the "Note block 1" row
  • Then I should see "Note deleted"

Feature: Testing Behat's functionality

In order to be able to use every functionality in Mahara is working correct
As an admin I need to log in
And test every link/file/button/checkbox etc. possible

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I am on homepage
  • And I choose "Profile" from account menu
  • And I click on "About me"
  • And I set the following fields to these values:

    | First name | test first name |
    | Last name | test last name |

  • And I click on "Save profile"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I fill in "Page title" with "test page name 1"
  • And I click on "Save"
  • And I should see "Page saved successfully"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Collection" in the dialog
  • And I fill in "Collection name" with "test collection name"
  • And the "Page navigation bar" checkbox should be checked
  • And I click on "Next: Edit collection pages"
  • And I click on "Add pages"
  • And I should see "You need to select a page to add to the collection."
  • And the checkbox "test page name 1" should be unchecked
  • And I check "test page name 1"
  • And the "test page name 1" checkbox should be checked
  • And I click on "Add pages"
  • And I click on "Next: Edit access"
  • And I click on "Return to portfolios"
  • And I click on "test collection name" card menu
  • And I should see "Delete"
  • And I go to the homepage
  • And I choose "Export" in "Manage" from main menu
  • And I move backward one page
  • And I move forward one page
  • And I choose "Profile" from account menu
  • And the "First name" field should not contain "Jinelle"
  • And the "First name" field should contain "test first name"

Feature: Interacting with the peer assessment and signoff blocks

As an author
I want to add a peer assessment and signoff block to my page
So I can get peer assessment before signing off the page
As a peer
I want to add a peer assessment to the page
As a manager
I want to verify the page

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
    | UserD | Kupuh1pa! | UserD@example.org | Dmitri | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_00 | Page 01 | user | UserA |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserA_03 | Page 03 | user | UserA |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Image Block 1 | image | Page UserA_00 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 1 | text | Page UserA_00 | no | textinput=Here is a new block. |
    | Peer Assessment | peerassessment | Page UserA_00 | no | instructions=This is the custom peer assessment instructions |
    | Image Block 2 | image | Page UserA_01 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 2 | text | Page UserA_01 | no | textinput=Here is a new block. |
    | Peer Assessment | peerassessment | Page UserA_01 | no | instructions=This is the custom peer assessment instructions |
    | Image Block 3 | image | Page UserA_02 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 3 | text | Page UserA_02 | no | textinput=Here is a new block. |
    | Image Block 4 | image | Page UserA_03 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 4 | text | Page UserA_03 | no | textinput=This is some text. |
    | Peer Assessment | peerassessment | Page UserA_03 | no | instructions=This is the custom peer assessment instructions for Page UserA_03 |

  • And the following "permissions" exist:

    | title | accesstype | accessname | role | multiplepermissions |
    | Page UserA_00 | user | userB | peer | 0 |
    | Page UserA_00 | user | userC | manager | 1 |
    | Page UserA_01 | user | userB | peer | 0 |
    | Page UserA_01 | user | userC | manager | 1 |
    | Page UserA_02 | user | userB | peer | 0 |
    | Page UserA_02 | user | userC | manager | 1 |

  • Given the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection UserA_01 | Collection 01 | user | UserA | Page UserA_01, Page UserA_02 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Sign-off"
  • And I enable the switch "Verify"
  • And I click on "Save"
  • Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
  • And I wait "1" seconds
  • And I click on "Return to portfolios"
  • And I go to portfolio page "Page UserA_01"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Sign-off"
  • And I enable the switch "Verify"
  • And I click on "Save"
  • Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
  • And I wait "1" seconds
  • And I click on "Return to portfolios"
  • Given I go to portfolio page "Page UserA_03"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Sign-off"
  • And I enable the switch "Verify"
  • And I click on "Save"
  • Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
  • And I wait "1" seconds
  • And I click on "Return to portfolios"
  • When I choose "Shared by me" in "Share" from main menu
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Page UserA_03" row
  • And I select "Person" from "accesslist[0][searchtype]"
  • And I select "Dmitri User" from select2 nested search box in row number "1"
  • And I select "Peer and manager" from "accesslist[0][role]"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I click on "Add peer assessment"
  • And I expand "Instructions" node
  • Then I should see "This is the custom peer assessment instructions"
  • And I set the field "Assessment" to "UserB first assessment - draft"
  • And I click on "Save draft"
  • And I click on "Add peer assessment"
  • And I set the field "Assessment" to "UserB second assessment - published"
  • And I click on "Publish"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I should not see "UserB first assessment - draft"
  • And I should see "UserB second assessment - published"
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I should not see "UserB first assessment - draft"
  • And I should see "UserB second assessment - published"
  • And I log out
  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I click on "Update page sign-off"
  • And I click on "Yes" in the "Signoff page" "Peerassessment" property
  • Then I should see "Sign-off status updated"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • Then I should not see "Add peer assessment"
  • And I log out
  • Given I log in as "UserC" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I should see "UserB second assessment - published"
  • And I click on "Update page verification"
  • And I click on "Yes" in the "Verify page" "Peerassessment" property
  • Then I should see "Verification status updated"
  • And I log out
  • Given I log in as "UserD" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_03"
  • And I should see "This is some text"
  • And I click on "Add peer assessment"
  • And I expand "Instructions" node
  • Then I should see "This is the custom peer assessment instructions"
  • And I set the field "Assessment" to "UserB first assessment - draft"
  • And I click on "Save draft"
  • And I click on "Add peer assessment"
  • And I set the field "Assessment" to "UserD second assessment - published"
  • And I click on "Publish"
  • And I log out
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |
    | UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | mahara | internal | member |
    | UserD | Kupuh1pa! | UserD@example.org | Dmitri | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_00 | Page 01 | user | UserA |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserA_03 | Page 03 | user | UserA |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Image Block 1 | image | Page UserA_00 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 1 | text | Page UserA_00 | no | textinput=Here is a new block. |
    | Peer Assessment | peerassessment | Page UserA_00 | no | instructions=This is the custom peer assessment instructions |
    | Image Block 2 | image | Page UserA_01 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 2 | text | Page UserA_01 | no | textinput=Here is a new block. |
    | Peer Assessment | peerassessment | Page UserA_01 | no | instructions=This is the custom peer assessment instructions |
    | Image Block 3 | image | Page UserA_02 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 3 | text | Page UserA_02 | no | textinput=Here is a new block. |
    | Image Block 4 | image | Page UserA_03 | no | attachemnt=Image1.jpg;showdescription=true |
    | Text Block 4 | text | Page UserA_03 | no | textinput=This is some text. |
    | Peer Assessment | peerassessment | Page UserA_03 | no | instructions=This is the custom peer assessment instructions for Page UserA_03 |

  • And the following "permissions" exist:

    | title | accesstype | accessname | role | multiplepermissions |
    | Page UserA_00 | user | userB | peer | 0 |
    | Page UserA_00 | user | userC | manager | 1 |
    | Page UserA_01 | user | userB | peer | 0 |
    | Page UserA_01 | user | userC | manager | 1 |
    | Page UserA_02 | user | userB | peer | 0 |
    | Page UserA_02 | user | userC | manager | 1 |

  • Given the following "collections" exist:

    | title | description | ownertype | ownername | pages |
    | Collection UserA_01 | Collection 01 | user | UserA | Page UserA_01, Page UserA_02 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I go to portfolio page "Page UserA_00"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Sign-off"
  • And I enable the switch "Verify"
  • And I click on "Save"
  • Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
  • And I wait "1" seconds
  • And I click on "Return to portfolios"
  • And I go to portfolio page "Page UserA_01"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Sign-off"
  • And I enable the switch "Verify"
  • And I click on "Save"
  • Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
  • And I wait "1" seconds
  • And I click on "Return to portfolios"
  • Given I go to portfolio page "Page UserA_03"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Sign-off"
  • And I enable the switch "Verify"
  • And I click on "Save"
  • Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
  • And I wait "1" seconds
  • And I click on "Return to portfolios"
  • When I choose "Shared by me" in "Share" from main menu
  • And I click on "Pages" in the "Share tabs" "Misc" property
  • And I click on "Edit access" in "Page UserA_03" row
  • And I select "Person" from "accesslist[0][searchtype]"
  • And I select "Dmitri User" from select2 nested search box in row number "1"
  • And I select "Peer and manager" from "accesslist[0][role]"
  • And I click on "Save"
  • And I log out
  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I wait "1" seconds
  • And I click on "Collection UserA_01"
  • And I should see "Add peer assessment"
  • When I click on "Next page"
  • Then I should see "You cannot see the content on this page because it does not require a peer assessment."
  • And I log out

Feature: Adding a placeholder block to a page

As a student
I need to be able to add a placeholder block to my portfolio
and then change it to be a block of my choosing
As an admin I need to be able to alter the order of blocks
to make more popular ones list first

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I fill in the following:

    | Block title | Mahara placeholder block |

  • And I click on "Save"
  • Then I should see "Please edit this block to choose its type."
  • And I scroll to the top
  • And I configure the block "Mahara placeholder block"
  • And I click on "Show more"
  • Then I should see "Image gallery"
  • And I fill in the following:

    | Block title | Mahara text block title |

  • And I click on blocktype "Text"
  • And I set the field "Block content" to "Mahara text block content"
  • And I click on "Save"
  • Then I should see "Mahara text block title"
  • Then I should see "Mahara text block content"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "Admin" with password "Kupuh1pa!"
  • And I choose "Plugin administration" in "Extensions" from administration menu
  • And I click on "Configuration for blocktype"
  • Then I should see "Content types"
  • And I move blocktype "Some HTML" to before "Text"
  • And I move blocktype "Comments" to before "Text"
  • And I move blocktype "External media" to before "Text"
  • And I move blocktype "PDF" to before "Text"
  • And I reload the page

Feature: Creating a plan and adding a number of tasks to the plan

As a user
In order to test the pagination of the plan

  • Given the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page admin_01 | Page 01 | user | admin |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Plans" in "Create" from main menu
  • And I click on "New plan"
  • And I fill in the following:

    | Title * | Plan 9 from outer space |
    | Description | Woooo |

  • And I fill in select2 input "addplan_tags" with "plan" and select "plan"
  • And I fill in select2 input "addplan_tags" with "test" and select "test"
  • And I click on "Save plan"
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page admin_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Plans"
  • And I set the field "Block title" to ""
  • And I check "Plan 9 from outer space"
  • And I click on "Save"
  • Then I should see "Woooo" in the block "Plan 9 from outer space"
  • When I click on "Add task"
  • Then I should see " New task"
  • When I fill in the following:

    | Title | New Space Task |
    | Description | Space Task - hold breath for a really long time |

  • And I fill in "Completion date" with "tomorrow" date in the format "Y/m/d"
  • And I enable the switch "Completed"
  • And I click on "Save task"
  • Then I should see " Page admin_01"
  • And I should see "Woooo" in the block "Plan 9 from outer space"
  • And I should see "New Space Task" in the block "Plan 9 from outer space"
  • Given the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page admin_01 | Page 01 | user | admin |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Plans" in "Create" from main menu
  • And I click on "New plan"
  • And I fill in the following:

    | Title * | Plan 9 from outer space |
    | Description | Woooo |

  • And I fill in select2 input "addplan_tags" with "plan" and select "plan"
  • And I fill in select2 input "addplan_tags" with "test" and select "test"
  • And I click on "Save plan"
  • When I click on "New task"
  • And I fill in "Title" with "Purchase Mars"
  • And I fill in "Completion date" with "+1 day" date in the format "Y/m/d"
  • And I fill in "Description" with "Purchase mars description"
  • And I fill in select2 input "edittask_tags" with "Task1" and select "Task1"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Set up atmosphere"
  • And I fill in "Completion date" with "+2 days" date in the format "Y/m/d"
  • And I fill in "Description" with "Purchase mars description"
  • And I fill in select2 input "edittask_tags" with "Task2" and select "Task2"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Terraform"
  • And I fill in "Completion date" with "+3 days" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task3" and select "Task3"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Exploit resources"
  • And I fill in "Completion date" with "+1 week" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task4" and select "Task4"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Bring colonists"
  • And I fill in "Completion date" with "+2 weeks" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task5" and select "Task5"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Build metropolis"
  • And I fill in "Completion date" with "+6 months" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task6" and select "Task6"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Start society"
  • And I fill in "Completion date" with "+1 year" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task7" and select "Task7"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Build utopia"
  • And I fill in "Completion date" with "+2 years" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task8" and select "Task8"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Squabble about morals"
  • And I fill in "Completion date" with "+3 years" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task9" and select "Task9"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Quell rebels"
  • And I fill in "Completion date" with "+5 years" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task10" and select "Task10"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Social collapse"
  • And I fill in "Completion date" with "+6 years" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task11" and select "Task11"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "New task"
  • And I fill in "Title" with "Alien invasion"
  • And I fill in "Completion date" with "+10 years" date in the format "Y/m/d"
  • And I fill in select2 input "edittask_tags" with "Task12" and select "Task12"
  • And I fill in select2 input "edittask_tags" with "Plan task" and select "Plan task"
  • Then I click on "Save task"
  • When I click on "Next page"
  • Then I should see "Alien invasion"
  • When I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page admin_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Plans"
  • And I set the following fields to these values:

    | Plan 9 from outer space | 1 |
    | Tasks to display | 5 |

  • And I click on "Save"
  • Then I should see "Add task"
  • When I click on "Add task"
  • Then I should see "New task"
  • When I fill in "Title" with "Man in the moon"
  • And I fill in "Completion date" with "+10 years" date in the format "Y/m/d"
  • And I fill in "Description" with "Man in the moon description text"
  • And I click on "Save task"
  • Then I should see "Page admin_01 | Edit"
  • Then I display the page
  • And I should see "Plan task"
  • And I should see "Task12"
  • And I should not see "Task6"
  • When I click on the "Show more tags" "Tags" property
  • Then I should see "Task6"
  • And I scroll to the base of id "feedback_pagination"
  • When I click on "Next page"
  • Then I should see "Build utopia"
  • When I click on "Next page"
  • Then I should see "Social collapse"
  • When I choose "Plans" in "Create" from main menu
  • And I click on "Edit" in "Plan 9 from outer space" row
  • And I set the field "Title" to "Life on Mars"
  • And I click on "Save plan"
  • Then I should see "Plan saved successfully"
  • And I should not see "outer space"
  • And I click on "Delete" in "Life on Mars" row
  • And I should see "Are you sure you wish to delete this plan?"
  • And I click on "Delete plan"
  • Then I should see "No plans yet. Add one."

Feature: Profile block displays correctly; add/delete profile picture,

As a user
I want to add a profile block to my page
And ensure it displays my name, email and profile picture correctly
Additionally, this is a test for adding/deleting a profile picture

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Profile pictures" from account menu
  • And I attach the file "Image2.png" to "Profile picture"
  • And I set the field "Image title" to "Angela"
  • And I click on "Upload"
  • And I select the radio "Set default for \"Angela\""
  • And I click on "Set default"
  • Then I should see "Default profile picture set successfully"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Page UserA_01"
  • And I click on "Edit"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Profile information"
  • And I set the field "Block title" to "Profile information"
  • And I check "First name"
  • And I check "Last name"
  • And I set the field "Angela" to "1"
  • And I set the field "UserA@example.org" to "1"
  • And I click on "Save"
  • And I display the page
  • Then I should see "First name: Angela"
  • And I should see "Last name: User"
  • And I should see "Email address: UserA@example.org"
  • And I should see images within the block "Profile information"
  • And I choose "Profile pictures" from account menu
  • And I select the radio "Mark \"Angela\" for deletion"
  • And I click on "Delete"
  • Then I should see "Profile picture deleted"

Feature: Editing a Resume page

In order to edit a resume page
As a user I need to go to Content
So I can edit the resume page

  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "Introduction"
  • And I click on "Edit"
  • And I fill in "A whole bunch of Texty text" in first editor
  • And I click on "Save"
  • Then I should see "Saved successfully"
  • And I should see "A whole bunch of Texty text"
  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "Introduction"
  • And I fill in the following:

    | Date of birth | 1970/01/07 |
    | Place of birth | Wellington |
    | Citizenship | NZ |
    | Visa status | Worker |

  • And I scroll to the center of id "personalinformation_gender_container"
  • And I set the following fields to these values:

    | Woman | 1 |

  • And I fill in the following:

    | Marital status | It's complicated |

  • And I click on "Save" in the "#personalinformation_save_container" "css_element"
  • And I should see "Résumé saved"
  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "Education"
  • And I click on "Move down" in "North American Cultural Studies" row
  • And I wait "1" seconds
  • And I click on "Move up" in "North American Cultural Studies" row
  • And I scroll to the id "main-nav"
  • And I click on "Add education history"
  • And I set the following fields to these values:

    | addeducationhistory_startdate | 1 Jan 2017 |
    | addeducationhistory_institution | Mail-order PhD |
    | addeducationhistory_institutionaddress | 45 Empty St |

  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I scroll to the top
  • And I click on "Employment"
  • And I click on "Add employment history"
  • And I set the following fields to these values:

    | addemploymenthistory_startdate | 1 Jan 2009 |
    | addemploymenthistory_enddate | 02 Dec 2010 |
    | addemploymenthistory_employer | Xero |
    | addemploymenthistory_employeraddress | 3 Cable Street |
    | addemploymenthistory_jobtitle | Code Ninja |
    | addemploymenthistory_positiondescription | A programmer, computer programmer, developer, dev, coder, or software engineer is a person who creates computer software. The term computer programmer can refer to a specialist in one area of computer programming or to a generalist who writes code for many kinds of software. One who practices or professes a formal approach to programming may also be known as a programmer analyst. |

  • And I scroll to the base of id "addemploymenthistory"
  • And I click on "Add a file" in the "#addemploymenthistory_filebrowser_open_upload_browse_container" "css_element"
  • And I attach the file "Image2.png" to "File"
  • And I close the dialog
  • And I click on "Save"
  • Then I should see "Saved successfully"
  • And I click on "Move down" in "Test Analyst" row
  • And I wait "1" seconds
  • And I click on "Move up" in "Test Analyst" row
  • And I scroll to the top
  • And I click on "Education"
  • And I scroll to the base of id "educationhistorylist"
  • And I wait "1" seconds
  • And I click on "Delete \"North American Cultural Studies (Masters of Arts) at University of Life\"" delete button
  • And I scroll to the top
  • And I click on "Employment"
  • And I scroll to the base of id "employmenthistorylist"
  • And I wait "1" seconds
  • And I click on "Delete \"Code Ninja: Xero\"" delete button
  • Given I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Profile page" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "My entire résumé"
  • And I set the field "Block title" to "My entire résumé"
  • And I select "Automatically retract" from "Retractable"
  • And I click on "Save"
  • And I display the page
  • And I expand "My entire résumé" node
  • Then I should not see "Code Ninja"
  • And I should not see "North American Cultural Studies"
  • When I click on "Test Analyst at Catalyst IT Limited"
  • And I wait "1" seconds
  • Then I should see "Address: 150 Willis St"
  • When I click on "Machine Learning - Creation 2.1 (Masters of Philosophy) at University College"
  • And I wait "1" seconds
  • And I scroll to the base of id "bottom-pane"
  • Then I should see "Address: 23a O'Dell Boulevard"
  • When I scroll to the id beginning with "educationhistorylist"
  • And I click on "Mail-order PhD"
  • Then I should see "45 Empty St"
  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "Achievements"
  • And I click on "Add certifications, accreditations and awards"
  • And I set the following fields to these values:

    | addcertification_date | 13/07/2017 |
    | addcertification_title | ISTQB Foundation Agile Tester Extension |
    | addcertification_description | Designed for testers holding the ISTQB® Foundation Certificate, this extension course provides an understanding of the fundamentals of testing in Agile projects. |

  • And I scroll to the base of id "addcertification"
  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I close the dialog
  • And I scroll to the base of id "addcertification_submitbtn_container"
  • And I wait "1" seconds
  • And I click on "Save" in the "#addcertification_submitbtn_container" "css_element"
  • And I scroll to the id "main-nav"
  • And I should see "Saved successfully"
  • And I click on "Move down" in "Scrum Master Certification" row
  • And I wait "1" seconds
  • And I click on "Move up" in "Scrum Master Certification" row
  • And I scroll to the base of id "addbookbutton"
  • And I click on "Add books and publications"
  • And I set the following fields to these values:

    | addbook_date | 20/06/2018 |
    | addbook_title | Normalising Te Reo Māori in Technology |
    | addbook_contribution | asdgfasg |
    | addbook_description | details asdfsda |

  • And I scroll to the base of id "addbook"
  • And I click on "Add a file" in the "#addbook_filebrowser_open_upload_browse_container" "css_element"
  • And I attach the file "Image2.png" to "File"
  • And I close the dialog
  • And I scroll to the base of id "addbook_submitbtn_container"
  • And I wait "1" seconds
  • And I click on "Save" in the "#addbook_submitbtn_container" "css_element"
  • And I scroll to the id "main-nav"
  • And I wait "1" seconds
  • And I should see "Saved successfully"
  • And I click on "Move down" in "Measurement of the neutron beta decay asymmetry using machine learning" row
  • And I wait "1" seconds
  • And I click on "Move up" in "Measurement of the neutron beta decay asymmetry using machine learning" row
  • And I scroll to the base of id "addmembershipbutton"
  • And I click on "Add professional membership"
  • And I set the following fields to these values:

    | addmembership_startdate | 15/07/2017 |
    | addmembership_enddate | 29/09/2018 |
    | addmembership_title | sdrtyh |
    | addmembership_description | sdfh |

  • And I scroll to the base of id "addmembership"
  • And I click on "Add a file" in the "#addmembership_filebrowser_open_upload_browse_container" "css_element"
  • And I attach the file "Image2.png" to "File"
  • And I close the dialog
  • And I scroll to the base of id "addmembership_submitbtn_container"
  • And I wait "1" seconds
  • And I click on "Save" in the "#addmembership_submitbtn_container" "css_element"
  • And I scroll to the id "main-nav"
  • And I should see "Saved successfully"
  • And I click on "Move down" in "Accredited Technologist" row
  • And I wait "1" seconds
  • And I click on "Move up" in "Accredited Technologist" row
  • And I click on "Delete \"sdrtyh\"" delete button
  • And I wait "1" seconds
  • And I should not see "sdrtyh"
  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "Goals and skills"
  • And I should see "My goals"
  • And I should see "My skills"
  • And I click on "Personal goals"
  • And I set the field "Description" to "Become a certified diver"
  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I click on "Close" in the "Upload dialog" "Modal" property
  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I scroll to the top
  • And I click on "Academic goals"
  • And I set the following fields to these values:

    | Description | Become tenured professor |

  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I click on "Close" in the "Upload dialog" "Modal" property
  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I scroll to the top
  • And I click on "Career goals"
  • And I set the following fields to these values:

    | Description | whateve ry askdf |

  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I click on "Close" in the "Upload dialog" "Modal" property
  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I scroll to the base of id "skills_edit_personalskill"
  • And I click on "Personal skills"
  • And I set the following fields to these values:

    | Description | whateve ry askdf |

  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I click on "Close" in the "Upload dialog" "Modal" property
  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I scroll to the base of id "skills_edit_academicskill"
  • And I click on "Academic skills"
  • And I set the following fields to these values:

    | Description | whateve ry askdf |

  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I click on "Close" in the "Upload dialog" "Modal" property
  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I scroll to the base of id "skills_edit_workskill"
  • And I click on "Work skills"
  • And I set the following fields to these values:

    | Description | whateve ry askdf |

  • And I click on "Add a file"
  • And I attach the file "Image2.png" to "File"
  • And I click on "Close" in the "Upload dialog" "Modal" property
  • And I click on "Save"
  • And I should see "Saved successfully"
  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "Interests"
  • And I click on "Edit"
  • And I set the following fields to these values:

    | Interest | running, swimming, skydiving, clarinet |

  • And I click on "Save"
  • And I should see "Saved successfully"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "One résumé field"
  • And I select the radio "Interests"
  • And I click on "Save"
  • And I display the page
  • And I should see "clarinet" in the "Resume field block" "Blocks" property
  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 1 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • And the following "educationhistory" exist:

    | user | startdate | enddate | institution | displayorder | institutionaddress | qualtype | qualname | qualdescription | attachment |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University of Life | 2 | 2/103 Industrial Lane | Masters of Arts | North American Cultural Studies | This qualification is a 4.5-year degree that ends in writing a Master's thesis. | Image2.png |
    | UserA | 1 Jan 2009 | 2 Dec 2010 | University College | 1 | 23a O'Dell Boulevard | Masters of Philosophy | Machine Learning - Creation 2.1 | This qualification is a 4 to 6 year degree that ends in an alternate (self-contained) universe. | Image2.png |

  • And the following "employmenthistory" exist:

    | user | startdate | enddate | employer | employeraddress | jobtitle | attachment | positiondescription |
    | UserA | 1 Jan 2009 | 02 Dec 2010 | Catalyst IT Limited | 150 Willis St | Test Analyst | Image2.png | Software testing can be described as the process which helps to identify the correctness, completeness, security and quality of developed computer software. In a nutshell, testing is finding out how well something works; a good tester will try multiple avenues to break whatever it is they are testing. In computer hardware and software development, testing is used at key checkpoints in the overall process to determine whether objectives are being met. |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 12/07/2017 | Scrum Master Certification | Image2.png | The main role of a Scrum Master is to ensure smooth establishment, efficient and healthy progress and continuous improvement of Scrum Practices in an agile Scrum team. Therefore, competence and perspective of every single Scrum Team Member in an agile Scrum team to be able to act on behalf of and with a Scrum Master is a fundamental factor which determines the success level and lifetime of an agile Scrum team. Whether you act as Scrum Master or not in your Scrum team, it is profoundly important for you to have a clear understanding about how and what makes Scrum far more successful, efficient and delightful to work with than other project management frameworks. Therefore, we recommend you to obtain your Scrum Master Accredited Certification™ (SMAC) if you are conducting one of the following Software Engineering roles: Architect, Business Analyst, Designer, Product Manager, Program Manager, Programmer, Project Manager, Team Leader, Tester |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 13/07/2017 | Measurement of the neutron beta decay asymmetry using machine learning | Dissertation – Doctor of Philosophy | Details ashgashg | Image2.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | enddate | title | description | attachment |
    | UserA | 13/07/2017 | 14/09/2022 | Accredited Technologist | Accredited Technologist is the new standard for IT Professionals within the first few years of their career. | Image2.png |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • When I choose "Résumé" in "Create" from main menu
  • And I click on "License"
  • And I fill in the following:

    | License | https://creativecommons.org/licenses/by/4.0/ |

  • And I click on "Advanced licensing"
  • And I fill in the following:

    | Licensor | test1 |
    | Original URL | something here |

  • And I click on "Save"
  • And I should see "Résumé saved"

Feature: Searching by person in "Shared with me"

In order to search by name on the shared with me page
As an admin I need to create accounts
So I can search for them by name

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page UserA_02 | Page 02 | user | UserA |
    | Page UserB_01 | Page 03 | user | UserB |
    | Page UserB_02 | Page 04 | user | UserB |
    | Page UserB_03 | Page 05 | user | UserB |
    | Page UserB_04 | Page 06 | user | UserB |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Edit access" in "Page UserA_01" row
  • And I set the select2 value "Page UserA_01, Page UserA_02" for "editaccess_views"
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I should see "Access rules were updated for 2 pages."
  • And I log out
  • And I log in as "UserB" with password "Kupuh1pa!"
  • And I should see "Bob User"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Edit access" in "Page UserB_01" row
  • And I set the select2 value "Page UserB_01, Page UserB_02" for "editaccess_views"
  • And I select "Public" from "accesslist[0][searchtype]"
  • And I click on "Save"
  • And I should see "Access rules were updated for 2 pages."
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Edit access" in "Page UserB_01" row
  • And I set the select2 value "Page UserB_03" for "editaccess_views"
  • And I select "Person" from "accesslist[0][searchtype]"
  • And I select "Admin Account" from select2 nested search box in row number "1"
  • And I click on "Save"
  • And I should see "Access rules were updated for 1 page."
  • And I log out
  • And I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Shared with me" in "Share" from main menu
  • And I fill in the following:

    | Search: | Angela |

  • And I check "Public"
  • And I click on "Search" in the "#search_submit_container" "css_element"
  • Then I should see "Page UserA_01"
  • And I fill in the following:

    | Search: | Bob |

  • And I check "Public"
  • And I click on "Search" in the "#search_submit_container" "css_element"
  • And I should see "Page UserB_02"
  • And I should see "Page UserB_03"
  • And I should not see "Page UserB_04"
  • And I should not see "Page UserA_01"

Feature: Check Secret URL functionality

1) Log in and create seceret URL
2) Verify copy icon button is displayed
3) Verify that Secret URL was created

  • Given the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page admin A | Page | admin | admin |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Shared by me" in "Share" from main menu
  • And I click on "Edit secret URL access" in "Page admin A" row
  • And I click on "New secret URL"
  • And I should see "Copy secret URL to the clipboard"
  • And I choose "Shared by me" in "Share" from main menu
  • Then I should see "1" in the "Page admin A" row

    ToDo
    This script still needs the following steps:
    1) user to click the "Copy secret URL to the clipboard" icon button
    2) paste the copied URL into an address bar
    3) verify the page title is "Page admin_01"

    NOTE - To write a function for the above will take a great deal of effort and is not feasible at this time

Feature: Create a site portfolio page with template blocks

In order to create a site portfolio page
As an admin
I check the templates cannot be shared then create a site page from the Page template with an added profile block
As a user
I can copy the site page and have the block pre-populated with information.

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role | studentid | town | country | occupation |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member | superA1 | Wellington | nz | Plumber |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member | normalB2 | Oslo | Norway | Welder |

  • Given I log in as "admin" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Configure site" from administration menu
  • And I should not see "Manage access"
  • When I click on "Dashboard template"
  • Then I should not see "Share" in the "Vertical button group" "Views" property
  • When I go to "/view/accessurl.php?id=2"
  • Then I should see "Access denied"
  • And I should see "You do not have access to view this page."
  • When I choose "Portfolios" in "Configure site" from administration menu
  • And I click on "Group homepage template"
  • Then I should not see "Share" in the "Vertical button group" "Views" property
  • When I go to "/view/accessurl.php?id=3"
  • Then I should see "Access denied"
  • And I should see "You do not have access to view this page."
  • When I choose "Portfolios" in "Configure site" from administration menu
  • And I click on "Profile template"
  • Then I should not see "Share" in the "Vertical button group" "Views" property
  • When I go to "/view/accessurl.php?id=1"
  • Then I should see "Access denied"
  • And I should see "You do not have access to view this page."
  • When I choose "Portfolios" in "Configure site" from administration menu
  • And I click on "Page template"
  • Then I should not see "Share" in the "Vertical button group" "Views" property
  • When I go to "/view/accessurl.php?id=4"
  • Then I should see "Access denied"
  • And I should see "You do not have access to view this page."
  • When I choose "Portfolios" in "Configure site" from administration menu
  • And I click on "Create" in the "Create" "Views" property
  • And I click on "Page" in the dialog
  • And I set the field "Page title" to "Site page with block templates"
  • And I click on "Save"
  • And I should see "Share"
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Profile information"
  • And I set the following fields to these values:

    | First name | 1 |
    | Last name | 1 |
    | Student ID | 1 |
    | Display name | 1 |
    | Postal address | 1 |
    | Town | 1 |
    | Country | 1 |

  • And I click on "Save"
  • And I wait "1" seconds
  • And I should see "Postal address"
  • And I click on "Share" in the "Toolbar buttons" "Nav" property
  • And I select "Registered people" from "General" in shared with select2 box
  • And I expand "Advanced options" node
  • And I enable the switch "Allow copying"
  • And I click on "Save"
  • And I log out
  • And I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Copy"
  • And I click on "Copy page"
  • And I click on "Edit"
  • And I click on "Display page"
  • Then I should see "Town: Wellington"
  • And I log out
  • And I log in as "UserB" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Copy"
  • And I click on "Copy page"
  • And I click on "Edit"
  • And I click on "Display page"
  • Then I should see "Town: Oslo"
  • And I log out

Feature: Adding Some HTML to a page

As a user when I add some HTML
to a page I want to check it
displays correctly

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Some HTML"
  • And I set the field "Block title" to "Some HTML"
  • And I expand the section "File"
  • And I attach the file "test_html.html" to "File"
  • And I click on "Save" in the "Submission" "Modal" property
  • And I wait "1" seconds
  • And I display the page
  • And I should see "Mahara does HTML"
  • And I should not see "<h1>Mahara does HTML</h1>"
  • And I should see images within the block "Some HTML"
  • And I click on "mahara manual"
  • And I switch to the new window
  • And I wait "2" seconds
  • Then I should see "This is the manual for Mahara"

Feature: Creating pages with blocks

As a user
I want to add multiple pages with a selection of blocks as a background step
As a group admin
I want to add a page with blocks as a background step

  • Given the following site settings are set:

    | field | value |
    | licensemetadata | 0 |

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Painterio | Mahara | mahara | internal | admin |
    | UserB | Kupuh1pa! | UserB@example.org | Mechania | Mahara | mahara | internal | member |

  • And the following "groups" exist:

    | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
    | Group1 | UserB | Group1 owned by UserB | standard | ON | OFF | all | ON | OFF | UserA | |

  • And the following "personalinformation" exist:

    | user | dateofbirth | placeofbirth | citizenship | visastatus | gender | maritalstatus |
    | UserA | 01/01/2000 | Italy | New Zealand | | | |
    | UserB | 01/01/2018 | Germany | New Zealand | | | |

  • And the following "goals and skills" exist:

    | user | goaltype/skilltype | title | description | attachment |
    | UserA | academicgoal | fix lateness | pack bag night before | Image1.jpg |
    | UserA | careergoal | meow | cat a lyst | users.csv |
    | UserA | personalgoal | gym shark | do do do | Image2.png |
    | UserA | academicskill | alphabet | abc | 3images.zip |
    | UserA | personalskill | whistle | *inset whistle noise | Image1.jpg |
    | UserA | workskill | team work | axe throwing? | users.csv |
    | UserB | academicgoal | academi doooo | description goal/skill | Image2.png |
    | UserB | careergoal | careerg doooo | description goal/skill | groups.csv |
    | UserB | personalgoal | persona doooo | description goal/skill | Image1.jpg |
    | UserB | academicskill | academi doooo | description goal/skill | users.csv |
    | UserB | personalskill | persona doooo | description goal/skill | Image2.png |
    | UserB | workskill | workski doooo | description goal/skill | groups.csv |

  • And the following "interests" exist:

    | user | interest | description |
    | UserA | FOSS | exciting open source stuff! |
    | UserA | Mahara | awesome e-portfolio system |
    | UserA | Coffee and Coding | |

  • And the following "coverletters" exist:

    | user | content |
    | UserA | UserA In Te Reo Māori, "mahara" means "to think, thinking, thought" and that fits the purpose of Mahara very well. Having been started in New Zealand, it was fitting to choose a Māori word to signify the concept of the ePortfolio system |
    | UserB | UserB In Te Reo Māori, "mahara" means "to think, thinking, thought" and that fits the purpose of Mahara very well. Having been started in New Zealand, it was fitting to choose a Māori word to signify the concept of the ePortfolio system |

  • And the following "educationhistory" exist:

    | user | institution | startdate | enddate | qualdescription | attachment |
    | UserA | Catalystania | 12/12/12 | 12/12/21 | 9 years | Image2.png |
    | UserB | Catalystonia | 21/10/21 | 10/12/26 | educationnn | Image2.png |
    | UserA | Catalyst High | 12/12/20 | 12/12/21 | 9 years | Image2.png |
    | UserB | Catalyst High | 21/10/20 | 10/12/26 | educationnn | Image2.png |

  • And the following "employmenthistory" exist:

    | user | employer | startdate | enddate | jobtitle | positiondescription | attachment |
    | UserA | Eggman | 01/02/03 | | crystal dr | locating magic crystals | Image1.jpg |
    | UserB | Cat | 02/02/00 | | Cat sitter | pat kittens | Image1.jpg |

  • And the following "contactinformation" exist:

    | user | email | mobilenumber |
    | UserA | userA@mahara.com | 01234567890 |

  • And the following "achievements" exist:

    | user | date | title | attachment | description |
    | UserA | 02/02/80 | European Witchcraft | Image3.png | While the streets may be education enough for real gangsters, this course aims to teach students about the history and culture of the mafia around the world. [Williams College] |
    | UserB | 02/02/80 | Western Witchcraft | mahara_about.pdf | While the streets may be education enough for real gangsters, this course aims to teach students about the history and culture of the mafia around the world. [Williams College] |

  • And the following "books and publications" exist:

    | user | date | title | contribution | description | attachment |
    | UserA | 05/05/50 | The Life-Changing Magic of not Tidying Up | co-author | seven million copies worldwide and have been translated into thirty-eight languages. | Image3.png |
    | UserB | 05/05/50 | The Life-Changing Magic of not Tidying Up | co-author | seven million copies worldwide and have been translated into thirty-eight languages. | Image3.png |

  • And the following "professionalmemberships" exist:

    | user | startdate | title | description | attachment |
    | UserA | 20/02/2008 | cat art company coordinator | catch up with cats | Image3.png |
    | UserB | 20/02/2008 | cat art company catcher | catch fish for cats | Image3.png |

  • And the following "forums" exist:

    | group | title | description | creator |
    | Group1 | unicorns! | magic mahara unicorns | UserB |

  • And the following "forumposts" exist:

    | group | forum | topic | subject | message | user |
    | Group1 | unicorns! | topic one | hello | mahara unicorns unite! | UserB |
    | Group1 | unicorns! | topic one | whatsup | yay! mahara unicorns unite! | UserB |
    | Group1 | unicorns! | topic one | cheer on | woo! mahara unicorns unite! | UserB |
    | Group1 | | topic one | cheer on | 10 papercranes, let's go! | UserB |
    | Group1 | unicorns! | topic one | extra subj | 100 papercranes, let's go! | UserB |
    | Group1 | unicorns! | | origami | 1000 papercranes, let's go! | UserB |
    | Group1 | | | postpost | 1000 papercranes, let's go! | UserB |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page One A | UserA Page 1 | user | UserA |
    | Page Two A | UserA Page 2 | user | UserA |
    | Page Three A | UserA Page 3 | user | UserA |
    | Page Four A | UserA Page 4 | user | UserA |
    | Page One B | UserB Page 1 | user | UserB |
    | Page One Grp | Group Page 1 | group | Group1 |

  • And the following "pagecomments" exist:

    | user | page | comment | private | group |
    | UserB | Page Two A | Comment by User B on page | false | |
    | UserB | Page Three A | Hi, I am a comment by User B | false | |
    | UserA | Page Three A | Hi, I am a comment by the owner | false | |
    | UserA | Page One Grp | Hi, I am a comment by UserA | false | Group1 |

  • And the following "collections" exist:

    | title | ownertype | ownername | description | pages |
    | collection one | user | UserA | desc of col | Page One A, Page Two A, Page Three A |

  • And the following "journals" exist:

    | owner | ownertype | title | description | tags |
    | UserA | user | journal1 | this is journal1 | amber,brown,cobalt |
    | Group1 | group | journal2 | this is journal2 | amber,brown,cobalt |

  • And the following "journalentries" exist:

    | owner | ownertype | title | entry | blog | tags | draft |
    | UserA | user | Entry One | This is my entry One | journal1 | cats,dogs | 0 |
    | UserA | user | Entry Two | This is my entry Two | journal1 | cats,dogs | 0 |
    | UserA | user | Entry Three | This is my entry Three | journal1 | cats,dogs | 0 |
    | UserA | user | Entry Four | This is my entry Four | journal1 | cats,dogs | 0 |
    | UserA | user | Entry Five | This is my entry Five | journal1 | cats,dogs | 0 |
    | UserA | user | Entry Mini | This is my min fields | | | 0 |
    | Group1 | group | Group e1 | This is my group entry | journal2 | | 0 |

  • And the following "plans" exist:

    | owner | ownertype | title | description | tags |
    | UserA | user | Plan One | This is my plan one | cats,dogs |
    | UserA | user | Plan Two | This is my plan two | cats,dogs |
    | UserA | user | Plan Mini | | |
    | Group1 | group | Group Plan | This is my group plan | unicorn |

  • And the following "tasks" exist:

    | owner | ownertype | plan | title | description | completiondate | completed | tags |
    | UserA | user | Plan One | Task One a | Task 1a Description | 12/12/19 | false | cats,dogs |
    | UserA | user | Plan One | Task One b | Task 1b Description | 12/01/19 | true | cats,dogs |
    | UserA | user | Plan Two | Task Two a | Task 2a Description | 12/10/19 | true | cats,dogs |
    | UserA | user | Plan Two | Task Two b | Task 2b Description | 11/01/19 | true | cats,dogs |
    | UserA | user | Plan Two | Task Two c | Task 2c Description | 22/02/19 | true | cats,dogs |
    | UserA | user | Plan Two | Task Min a | | 22/02/19 | false | |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Text | text | Page One A | yes | textinput=This is some text;tags=texttag |
    | Image JPG | image | Page One A | no | attachment=Image1.jpg; width=100;tags=imagetag |
    | Image PNG | image | Page One A | no | attachment=Image2.png |
    | Files to download | filedownload | Page One A | auto | attachments=mahara_about.pdf |
    | Files to download | filedownload | Page One A | no | attachments=mahara_about.pdf,Image2.png |
    | External Feed - News | externalfeed | Page One A | No | source=https://stuff.co.nz/rss;count=5 |
    | External Feed - Food | externalfeed | Page One A | no | source=https://www.bonappetit.com/feed/rss |
    | External Feed - Tech | externalfeed | Page One A | no | source=feeds.feedburner.com/geekzone;count=3;tags=cat,a,lyst |
    | Social Media | socialprofile | Page One A | no | sns=instagram,twitter,facebook,tumblr,pinterest,mysocialmedia |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Image | image | Page Two A | no | attachment=Image3.png |
    | Files to download | filedownload | Page Two A | no | attachments=mahara_about.pdf,Image2.png,testvid3.mp4,mahara.mp3 |
    | External Video | externalvideo | Page Two A | no | source=https://youtu.be/yRxFm70nOrY;tags=jen,from,the,house |
    | Navigation | navigation | Page Two A | no | collection=collection one;copytoall=yes |
    | Social Media | socialprofile | Page Two A | no | sns=instagram,twitter,facebook,tumblr,pinterest,mysocialmedia |
    | Pdf | pdf | Page Two A | no | attachment=mahara_about.pdf |
    | Recent Forum Posts | recentforumposts | Page Two A | no | groupname=Group1;maxposts=3 |
    | External Video | externalvideo | Page Two A | no | source=https://youtu.be/k5t5PD5F8Wo |
    | Note/Textbox 1 | textbox | Page Two A | no | notetitle=secretnote;text=ma ha ha ha ra!;tags=mahara,araham;attachments=Image3.png,Image2.png,Image1.jpg;allowcomments=yes |
    | Note/textbox ref:1 | textbox | Page Two A | no | existingnote=secretnote |
    | Note/Textbox copy:1 | textbox | Page Two A | no | existingnote=secretnote;allowcomments=yes;copynote=true;notetitle=newsecretnote |
    | Profile Information | profileinfo | Page Two A | no | introtext =Mahara unicorn here! Nice to meet you :);profileicon=Image1.jpg |
    | Profile Information | profileinfo | Page Two A | no | introtext =Mahara unicorn here! Nice to meet you :);profileicon=Image2.png |
    | Résumé | entireresume | Page Two A | no | tags=mahara |
    | Résumé: Personal Goal | resumefield | Page Two A | no | artefacttype=personalgoal |
    | Résumé: Work Skill | resumefield | Page Two A | no | artefacttype=workskill |
    | Résumé: Interest | resumefield | Page Two A | no | artefacttype=interest |
    | Résumé: Achievements | resumefield | Page Two A | no | artefacttype=certification |
    | Résumé: Employment Hist. | resumefield | Page Two A | no | artefacttype=employmenthistory |
    | Résumé: Books | resumefield | Page Two A | no | artefacttype=book |
    | Résumé: Memberships | resumefield | Page Two A | no | artefacttype=membership |
    | Résumé: Education Hist. | resumefield | Page Two A | no | artefacttype=educationhistory |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Blog/Journal | blog | Page Three A | no | copytype=nocopy;count=5;journaltitle=journal1 |
    | Blogpost/JournalEntry | blogpost | Page Three A | no | copytype=nocopy;journaltitle=journal1;entrytitle=Entry Two |
    | Comments | comment | Page Three A | no | |
    | Peer Assessment | peerassessment | Page Three A | auto | |
    | Creative Commons | creativecommons | Page Three A | no | commercialuse=yes;license=3.0;allowmods=no |
    | Navigation | navigation | Page Three A | no | collection=collection one;copytoall=yes |
    | Plans | plans | Page Three A | no | plans=Plan One,Plan Two;tasksdisplaycount=10 |
    | Internal Media: Video | internalmedia | Page Three A | no | attachment=testvid3.mp4 |
    | Internal Media: Audio | internalmedia | Page Three A | no | attachment=mahara.mp3 |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Recent journal entries | recentposts | Page Four A | no | journaltitle=journal1;maxposts=10 |
    | Tagged journal entries | taggedposts | Page Four A | no | tags=cats; maxposts=5;showfullentries=yes;copytype=nocopy |
    | Recent journal entries | recentposts | Page Four A | no | journaltitle=journal1;maxposts=10 |
    | Tagged journal entries | taggedposts | Page Four A | no | tags=cats; maxposts=5;showfullentries=yes;copytype=nocopy |
    | Open Badges | openbadgedisplayer | Page Four A | no | |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | Gallery - style 1 | gallery | Page One B | no | attachments=Image1.jpg,Image3.png,Image3.png,Image2.png,Image1.jpg;imagesel=2;showdesc=yes |
    | Gallery - style 2 | gallery | Page One B | yes | attachments=Image3.png,Image2.png,Image1.jpg,Image1.jpg;imagesel=2;showdesc=yes;imagestyle=2 |
    | Gallery - style 3 | gallery | Page One B | yes | attachments=Image3.png,Image2.png,Image3.png,Image1.jpg,Image1.jpg;imagesel=2;showdesc=no;imagestyle=3 |
    | Folder | folder | Page One B | no | dirname=myfolder;attachments=mahara_about.pdf,Image2.png,Image1.jpg,Image3.png,mahara.mp3 |
    | Some HTML | html | Page One B | yes | attachment=test_html.html |
    | Profile Information | profileinfo | Page One B | no | introtext =Mahara unicorn here! Nice to meet you :);profileicon=Image3.png |
    | Résumé | entireresume | Page One B | no | tags=mahara |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | GoogleApps: Google Maps | googleapps | Page One Grp | no | googleapp=<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2997.861064367898!2d174.77176941597108!3d-41.29012814856559!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x6d38afd6326bfda5%3A0x5c0d858838e52d7a!2sCatalyst!5e0!3m2!1sen!2snz!4v1550707486290" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>;height=200;tags=cat,dog,monkeys |
    | GoogleApps: Google Cal. | googleapps | Page One Grp | no | https://calendar.google.com/calendar/embed?src=en.new_zealand%23holiday%40group.v.calendar.google.com&ctz=Pacific%2FAuckland |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I go to portfolio page "Page One A"
  • And I go to portfolio page "Page Two A"
  • And I go to portfolio page "Page Three A"
  • And I go to portfolio page "Page Four A"
  • And I go to portfolio page "Page One Grp"
  • And I log out
  • Then I log in as "UserB" with password "Kupuh1pa!"
  • And I go to portfolio page "Page One B"

Feature: Creating/deleting a text block

As a user
I want to add and remove text blocks from my page
So I can control the content

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • When I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the field "Block title" to "Text block 1"
  • And I set the field "Block content" to "Here is a new block."
  • And I click on "Save"
  • And I should see "Text block 1" in the "Main content" "Views" property
  • And I display the page
  • Then I should see "Here is a new block"
  • And I click on "Edit"
  • And I delete the block "Text block 1"
  • And I display the page
  • Then I should not see "Text block 1"

Feature: Creating versions of a page

As a user
I want to be able to view older versions of my page on a timeline
So I can control the content

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "plans" exist:

    | owner | ownertype | title | description | tags |
    | UserA | user | Plan One | This is my plan one | cats,dogs |

  • And the following "tasks" exist:

    | owner | ownertype | plan | title | description | completiondate | completed | tags |
    | UserA | user | Plan One | Task One | Task One Description | 12/12/19 | no | cats,dogs |
    | UserA | user | Plan One | Task Two | Task Two Description | 12/01/19 | yes | cats,dogs |
    | UserA | user | Plan One | Task 2a | Task 2a Description | 12/10/19 | yes | cats,dogs |
    | UserA | user | Plan One | Task 2b | Task 2b Description | 11/05/19 | yes | cats,dogs |
    | UserA | user | Plan One | Task 2c | Task 2c Description | 22/02/19 | yes | cats,dogs |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page Two | Page Two | user | UserA |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | my plan | plans | Page Two | no | plans=Plan One;tasksdisplaycount=10 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page UserA_01" card menu
  • When I click on the add block button
  • And I click on "Add" in the "Add new block" "Blocks" property
  • And I click on blocktype "Text"
  • And I set the field "Block title" to "Text block version 1"
  • And I set the field "Block content" to "Here is the first version of the block."
  • And I click on "Save"
  • And I display the page
  • And I click on "More options"
  • And I click on "Save to timeline"
  • And I should see "Saved to timeline"
  • And I click on "Edit"
  • And I configure the block "Text block version 1"
  • And I set the field "Block title" to "Text block version 2"
  • And I set the field "Block content" to "Here is the second version of the block."
  • And I click on "Save"
  • And I display the page
  • And I click on "More options"
  • And I click on "Save to timeline"
  • And I click on "More options"
  • And I click on "Timeline"
  • And I click on "Go to the next version"
  • And I wait "1" seconds
  • Then I should see "Here is the second version of the block"
  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |

  • And the following "plans" exist:

    | owner | ownertype | title | description | tags |
    | UserA | user | Plan One | This is my plan one | cats,dogs |

  • And the following "tasks" exist:

    | owner | ownertype | plan | title | description | completiondate | completed | tags |
    | UserA | user | Plan One | Task One | Task One Description | 12/12/19 | no | cats,dogs |
    | UserA | user | Plan One | Task Two | Task Two Description | 12/01/19 | yes | cats,dogs |
    | UserA | user | Plan One | Task 2a | Task 2a Description | 12/10/19 | yes | cats,dogs |
    | UserA | user | Plan One | Task 2b | Task 2b Description | 11/05/19 | yes | cats,dogs |
    | UserA | user | Plan One | Task 2c | Task 2c Description | 22/02/19 | yes | cats,dogs |

  • And the following "pages" exist:

    | title | description | ownertype | ownername |
    | Page UserA_01 | Page 01 | user | UserA |
    | Page Two | Page Two | user | UserA |

  • And the following "blocks" exist:

    | title | type | page | retractable | data |
    | my plan | plans | Page Two | no | plans=Plan One;tasksdisplaycount=10 |

  • Given I log in as "UserA" with password "Kupuh1pa!"
  • And I choose "Portfolios" in "Create" from main menu
  • And I click on "Edit" in "Page Two" card menu
  • And I display the page
  • And I click on "More options"
  • And I click on "Save to timeline"
  • And I should see "Saved to timeline"
  • When I click on "More options"
  • And I click on "Timeline"
  • Then I should see "Task One"
  • And I should see "Task Two"
  • And I should see "Task 2c"
  • And I should see "Task 2b"
  • And I should see "Task 2a"
  • When I click on "Display page"
  • And I click on "Edit"
  • And I click on "Add task"
  • Then I should see " New task"
  • When I fill in the following:

    | Title | New Space Task |
    | Description | Space Task - hold breath for a really long time |

  • And I fill in "Completion date" with "tomorrow" date in the format "Y/m/d"
  • And I enable the switch "Completed"
  • And I click on "Save task"
  • Then I should see " Page Two"
  • And I should see "New Space Task" in the block "my plan"
  • When I click on "Display page"
  • And I click on "More options"
  • And I click on "Timeline"
  • Then I should see "Task One"
  • And I should see "Task Two"
  • And I should see "Task 2c"
  • And I should see "Task 2b"
  • And I should see "Task 2a"
  • And I should not see "New Space Task"

Feature: The wall block should send out notifications

In order to make it easier for the wall owner to know about new wall posts
So they can respond to those new wall posts

  • Given the following "users" exist:

    | username | password | email | firstname | lastname | institution | authname | role |
    | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
    | UserB | Kupuh1pa! | UserB@example.org | Bob | User | mahara | internal | member |

  • Given I log in as "UserB" with password "Kupuh1pa!"
  • And I choose "People" in "Engage" from main menu
  • And I click on "Angela User"
  • And I scroll to the base of id "wall"
  • And I set the field "Post" to "Hello"
  • And I click on "Post"
  • And I log out
  • And I log in as "UserA" with password "Kupuh1pa!"
  • And I choose inbox
  • Then I should see "Wall post" in the "Inbox message icon" "Misc" property
  • When I click on "New post on your wall"
  • Then I should see "Hello"
  • When I click on "View whole wall"
  • Then I should see "Angela User: Wall"
  • And I should see "Bob User"
  • And I should see "Hello"