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 @@ -340,6 +340,28 @@ export class HistoryTestPage {
340
340
await expect ( selected ) . toHaveCount ( 1 ) ;
341
341
}
342
342
343
+ /**
344
+ * @param {number } nth
345
+ */
346
+ async hoversRowIndex ( nth ) {
347
+ const rows = this . page . locator ( 'main' ) . locator ( '[aria-selected]' ) ;
348
+ await rows . nth ( nth ) . hover ( ) ;
349
+ await rows . nth ( nth ) . locator ( '[data-action="entries_menu"]' ) . waitFor ( { state : 'visible' } ) ;
350
+ }
351
+ /**
352
+ * @param {number } nth
353
+ */
354
+ async hoversRowIndexBtn ( nth ) {
355
+ const rows = this . page . locator ( 'main' ) . locator ( '[aria-selected]' ) ;
356
+ await rows . nth ( nth ) . locator ( '[data-action="entries_menu"]' ) . hover ( ) ;
357
+ }
358
+ /**
359
+ *
360
+ */
361
+ async hoversDeleteAllBtn ( ) {
362
+ await this . page . getByRole ( 'button' , { name : 'Delete All' , exact : true } ) . hover ( ) ;
363
+ }
364
+
343
365
/**
344
366
* @param {number } nth
345
367
*/
@@ -519,6 +541,14 @@ export class HistoryTestPage {
519
541
return this . page . locator ( 'header' ) ;
520
542
}
521
543
544
+ async hoversRange ( range ) {
545
+ await this . page . getByLabel ( `Show history for ${ range } ` ) . hover ( ) ;
546
+ }
547
+ async hoversRangeDelete ( range ) {
548
+ // await this.page.pause();
549
+ await this . page . getByRole ( 'button' , { name : `Delete history for ${ range } ` } ) . hover ( ) ;
550
+ }
551
+
522
552
/**
523
553
* @param {number[] } indexes
524
554
*/
You can’t perform that action at this time.
0 commit comments