Commit 946d2b31 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1755662: Behat: test for renaming file"

parents ee8abfbb e62f774a
@javascript @core
Feature: Rename file and add description
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! | | Angela | User | mahara | internal | member |
Scenario: Add file, rename and add description
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Files" in "Content" from main menu
And I attach the file "mahara_about.pdf" to "File"
And I press "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 press "Save changes"
And 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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment