Behat: Skin selection always selects first skin

Bug #1935782 reported by Gold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Gold

Bug Description

Adding a test for Bug #1934830 I was finding that I was unable to find the expected skin. This was tracked back to the following step in behat.

@Then I select the skin :skinname from :skinsection

It turns out that this particular step only ever selects the first skin rather than the selected skin.

This step is defined in htdocs/testing/frameworks/behat/classes/BehatGeneral.php (around line 2358 when this was posted.)

Tags: behat
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11854

Gold (gold.catalyst)
Changed in mahara:
status: New → In Progress
importance: Undecided → Medium
milestone: none → 21.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11854
Committed: https://git.mahara.org/mahara/mahara/commit/f8cb41cdfdd46c132f644e258bc9cb7f3943d2a8
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit f8cb41cdfdd46c132f644e258bc9cb7f3943d2a8
Author: Gold <email address hidden>
Date: Mon Jul 12 12:34:32 2021 +1200

Bug #1935782 - Skin selection selects first skin

The "Then I select the skin :skinname from :skinsection" step always
selects the first skin.

Updated the iSelectTheSkinFrom() step definition to use the $skinname in
the xpath.

Testing can be done with `./mahara_behat.sh runheadless `user_content/create_delete_share_skin.feature.

Change-Id: I32bd072ab60a4a9798aa8611db6c69e248c7cacf

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.