@@ -445,7 +445,7 @@ export default class DOMAssertions {
445
445
* @param {string? } message
446
446
*
447
447
* @example
448
- * assert.dom('input.username').hasNoAttribute ('disabled');
448
+ * assert.dom('input.username').doesNotHaveAttribute ('disabled');
449
449
*
450
450
* @see {@link #hasAttribute }
451
451
*/
@@ -492,7 +492,7 @@ export default class DOMAssertions {
492
492
* @example
493
493
* assert.dom('button').hasAria('pressed', 'true');
494
494
*
495
- * @see {@link #hasNoAria }
495
+ * @see {@link #doesNotHaveAria }
496
496
*/
497
497
hasAria ( name : string , value ?: string | RegExp | { any : true } , message ?: string ) : DOMAssertions {
498
498
return this . hasAttribute ( `aria-${ name } ` , value , message ) ;
@@ -502,6 +502,8 @@ export default class DOMAssertions {
502
502
* Assert that the {@link HTMLElement} has no ARIA attribute with the
503
503
* provided `name`.
504
504
*
505
+ * **Aliases:** `hasNoAria`, `lacksAria`
506
+ *
505
507
* @param {string } name
506
508
* @param {string? } message
507
509
*
@@ -514,6 +516,14 @@ export default class DOMAssertions {
514
516
return this . doesNotHaveAttribute ( `aria-${ name } ` , message ) ;
515
517
}
516
518
519
+ hasNoAria ( name : string , message ?: string ) : DOMAssertions {
520
+ return this . doesNotHaveAria ( name , message ) ;
521
+ }
522
+
523
+ lacksAria ( name : string , message ?: string ) : DOMAssertions {
524
+ return this . doesNotHaveAria ( name , message ) ;
525
+ }
526
+
517
527
/**
518
528
* Assert that the {@link HTMLElement} has a property with the provided `name`
519
529
* and checks if the property `value` matches the provided text or regular
0 commit comments