File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
special-pages/pages/history/integration-tests Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,28 @@ export class HistoryTestPage {
350
350
await expect ( selected ) . toHaveCount ( 1 ) ;
351
351
}
352
352
353
+ /**
354
+ * @param {number } nth
355
+ */
356
+ async hoversRowIndex ( nth ) {
357
+ const rows = this . page . locator ( 'main' ) . locator ( '[aria-selected]' ) ;
358
+ await rows . nth ( nth ) . hover ( ) ;
359
+ await rows . nth ( nth ) . locator ( '[data-action="entries_menu"]' ) . waitFor ( { state : 'visible' } ) ;
360
+ }
361
+ /**
362
+ * @param {number } nth
363
+ */
364
+ async hoversRowIndexBtn ( nth ) {
365
+ const rows = this . page . locator ( 'main' ) . locator ( '[aria-selected]' ) ;
366
+ await rows . nth ( nth ) . locator ( '[data-action="entries_menu"]' ) . hover ( ) ;
367
+ }
368
+ /**
369
+ *
370
+ */
371
+ async hoversDeleteAllBtn ( ) {
372
+ await this . page . getByRole ( 'button' , { name : 'Delete All' , exact : true } ) . hover ( ) ;
373
+ }
374
+
353
375
/**
354
376
* @param {number } nth
355
377
*/
@@ -524,6 +546,14 @@ export class HistoryTestPage {
524
546
return this . page . locator ( 'header' ) ;
525
547
}
526
548
549
+ async hoversRange ( range ) {
550
+ await this . page . getByLabel ( `Show history for ${ range } ` ) . hover ( ) ;
551
+ }
552
+ async hoversRangeDelete ( range ) {
553
+ // await this.page.pause();
554
+ await this . page . getByRole ( 'button' , { name : `Delete history for ${ range } ` } ) . hover ( ) ;
555
+ }
556
+
527
557
/**
528
558
* @param {number[] } indexes
529
559
*/
You can’t perform that action at this time.
0 commit comments