← Back to team overview

mahara-contributors team mailing list archive

[Bug 1791002] [NEW] Behat step for checking contents of an attribute

 

Public bug reported:

Currently there is no way to check the contents of an attribute of a
page element. This would be useful, e.g. when title text shows on hover,
being able to check the title text contents.

I'm thinking something along the lines of:

"element" "attribute" should contain "text"

where you pass in the DOM element, the attribute you want to check and
the text. The step finds the element, calls getAttribute and compares
the text with what you passed in.

** Affects: mahara
     Importance: Undecided
         Status: New

-- 
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/1791002

Title:
  Behat step for checking contents of an attribute

Status in Mahara:
  New

Bug description:
  Currently there is no way to check the contents of an attribute of a
  page element. This would be useful, e.g. when title text shows on
  hover, being able to check the title text contents.

  I'm thinking something along the lines of:

  "element" "attribute" should contain "text"

  where you pass in the DOM element, the attribute you want to check and
  the text. The step finds the element, calls getAttribute and compares
  the text with what you passed in.

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


Follow ups