FLUID-4931: Extend assertNode to handle hasClass, for testing if a class exists on an node

Metadata

Source
FLUID-4931
Type
Task
Priority
Major
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Justin Obara
Created
2013-03-11T17:45:30.658-0400
Updated
2021-07-29T01:41:25.697-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Testing Infrastructure

Description

assertNode can compare all classes on a node against an expected value, but doesn't provide a facility for just testing that a single specific class is present on a node. Something like what jQuery's hasClass method provides.

assertNode could be extended to have a hasClass key taking one or more classes to test against.

Comments