← Back to team overview

mahara-contributors team mailing list archive

[Bug 1788538] Re: Behat: should see in row step passes/fails for same text

 

[Expired for Mahara because there has been no activity for 60 days.]

** Changed in: mahara
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1788538

Title:
  Behat: should see in row step passes/fails for same text

Status in Mahara:
  Expired

Bug description:
  In making a step for 'I should not see "blah" in the "blah" row',
  I found a problem with 'I should see "blah" in the "blah" row'. 

  'And I should see "Edit General discussion" in the "General
  discussion" row' in the test below seems to pass regardless of whether
  it's true or not.  There's some hidden screen-reader text in the row
  that contains "Edit", but the full text is not in the page.

  I suspect it's an issue with how the xpath is being generated, or what
  is done with it. There's a line in the i_find_in_row function
  (BehatGeneral.php ln 495) that assigns a $rownode variable that is
  never used.

  @javascript @core
  Feature: Mahara users can participate in groups
    As a mahara user
    I need to participate in groups

  Background:
      Given the following "users" exist:
         | username | password | email | firstname | lastname | institution | authname | role |
         | UserA | Kupuh1pa! | UserA@xxxxxxxxxxx | Angela | User | mahara | internal | member |
         | UserB | Kupuh1pa! | UserB@xxxxxxxxxxx | Bob | User | mahara | internal | member |
         | UserC | Kupuh1pa! | UserC@xxxxxxxxxxx | Cecilia | User | mahara | internal | member |
         | UserD | Kupuh1pa! | UserD@xxxxxxxxxxx | Dmitri | User | mahara | internal | member |
         | UserE | Kupuh1pa! | UserE@xxxxxxxxxxx | Evonne | User | mahara | internal | member |
      And the following "groups" exist:
         | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
         | GroupA | UserA | GroupA owned by UserA | standard | ON | ON | all | ON | ON | UserB, UserC | UserD |

  Scenario: Verify group member can not see Edit forum or Delete forum only New topic and Unsubscribe from forum
      Given I log in as "UserB" with password "Kupuh1pa!"
      And I follow "GroupA"
      And I follow "Forums (tab)"
      Then I should see "Unsubscribe" in the "General discussion" row
      And I should see "Edit General discussion" in the "General discussion" row
      And I should not see "Delete General discussion" in the "General discussion" row

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1788538/+subscriptions


References