1
- /* global process */
2
1
import { expect , test } from '@playwright/test' ;
3
2
import { HistoryTestPage } from './history.page.js' ;
4
3
@@ -48,7 +47,7 @@ test.describe('history item selections', { tag: ['@screenshots'] }, () => {
48
47
test ( 'main selecting' , async ( { page } , workerInfo ) => {
49
48
const hp = HistoryTestPage . create ( page , workerInfo ) . withEntries ( 12 ) ;
50
49
await hp . openPage ( ) ;
51
- await hp . didMakeNthQuery ( { nth : 0 , query : { term : '' } } ) ;
50
+ await hp . didMakeNthQuery ( { nth : 0 , query : { term : '' } , source : 'initial' } ) ;
52
51
await hp . selectsRowIndex ( 1 ) ;
53
52
await hp . selectsRowIndexWithShift ( 3 ) ;
54
53
await hp . hoversRowIndex ( 1 ) ;
@@ -59,7 +58,7 @@ test.describe('history item selections', { tag: ['@screenshots'] }, () => {
59
58
test ( 'main hover' , async ( { page } , workerInfo ) => {
60
59
const hp = HistoryTestPage . create ( page , workerInfo ) . withEntries ( 12 ) ;
61
60
await hp . openPage ( ) ;
62
- await hp . didMakeNthQuery ( { nth : 0 , query : { term : '' } } ) ;
61
+ await hp . didMakeNthQuery ( { nth : 0 , query : { term : '' } , source : 'initial' } ) ;
63
62
await hp . hoversRowIndex ( 0 ) ;
64
63
await expect ( hp . main ( ) ) . toHaveScreenshot ( 'main.hover.light.png' , { maxDiffPixels } ) ;
65
64
await hp . darkMode ( ) ;
@@ -68,7 +67,7 @@ test.describe('history item selections', { tag: ['@screenshots'] }, () => {
68
67
test ( 'main selection + hover' , async ( { page } , workerInfo ) => {
69
68
const hp = HistoryTestPage . create ( page , workerInfo ) . withEntries ( 12 ) ;
70
69
await hp . openPage ( ) ;
71
- await hp . didMakeNthQuery ( { nth : 0 , query : { term : '' } } ) ;
70
+ await hp . didMakeNthQuery ( { nth : 0 , query : { term : '' } , source : 'initial' } ) ;
72
71
await hp . selectsRowIndex ( 1 ) ;
73
72
await hp . hoversRowIndexBtn ( 1 ) ;
74
73
await expect ( hp . main ( ) ) . toHaveScreenshot ( 'main.select+hover.light.png' , { maxDiffPixels } ) ;
0 commit comments