[2012-12-13] BEHAT: Create a feature file and script for My Profile #622

Open
silverstripe-issues opened this Issue Apr 3, 2013 · 5 comments

Projects

None yet

4 participants

@silverstripe-issues

created by: @jbridson (jbridson)
created at: 2012-12-13
original ticket: http://open.silverstripe.org/ticket/8122


@todo
Feature: Manage my own settings
  As a CMS user
  I want to be able to change personal settings
  In order to streamline my CMS experience

  Background:
    Given a "member" "Joe" belongs to "Admin Group" with "Email"="joe@test.com" and "Password"="secret"
    And the "group" "Admin Group" has permissions "Full administrative rights"
    And I am logged in with "joe@test.com" and "secret"
    And I navigate to "admin/myprofile"

  Scenario: I can edit my personal details
    Given I fill in "First Name" with "Jack"
    And I fill in "Surname" with "Johnson"
    And I fill in "Email" with "jack@test.com"
    When I press the "Save" button
    Then I should not see "John"
    But I should see "Jack"
    And I should see "Johnson"
    And I should see "jack@test.com"

  Scenario: I can change my password
    Given I click "Change Password"
    And I fill out "Password" with "newsecret"
    And I fill out "Confirm Password" with "newsecret"
    And I press the "Save" button
    And I log out
    When I login with "joe@test.com" and "newsecret"
    Then I should see the CMS

  Scenario: I can change the interface language
    Given I fill in "Interface Language" with "German (Germany)"
    And I press the "Save" button
    Then I should see "Sprache"
@silverstripe-issues

comment by: @chillu (ischommer)
created at: 2012-12-13


Setting milestone from beta1 to 3.1.0 final - unless some magic fairies come in and write the tests over the weekend I don't see how this would get done ;)

@chillu
SilverStripe Ltd. member

That's sufficiently tested in profile.feature now. Doesn't include date/time settings testing because its not exposed anywhere. The only place I can think of is the "page history" of the CMS module, but the profile feature is part of the framework module which should operate independently

@chillu chillu closed this Nov 12, 2013
@chillu
SilverStripe Ltd. member

Uhm yeah, those tests in profile.feature aren't actually implemented. Reopening.

@chillu chillu reopened this Nov 12, 2013
@srizzling

Should this profile.feature be located in the framework? Shouldn't this be located in cms?

@chillu
SilverStripe Ltd. member

@srizzling The framework comes with a basic CMS UI as well, for example a UI for managing your profile - just not the page-related aspects.

@simonwelsh simonwelsh added the 3.1 label Mar 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment