@@ -3,10 +3,12 @@ import { acceptLicenseTermsAndAddDatabase, deleteDatabase } from '../../../helpe
3
3
import { rte } from '../../../helpers/constants' ;
4
4
import { BrowserPage , CliPage } from '../../../pageObjects' ;
5
5
import { commonUrl , ossStandaloneConfig } from '../../../helpers/conf' ;
6
+ import { Common } from '../../../helpers/common' ;
6
7
7
8
const browserPage = new BrowserPage ( ) ;
8
9
const cliPage = new CliPage ( ) ;
9
10
const chance = new Chance ( ) ;
11
+ const common = new Common ( ) ;
10
12
11
13
const value = chance . word ( { length : 5 } ) ;
12
14
let field = chance . word ( { length : 5 } ) ;
@@ -122,3 +124,20 @@ test('Verify that user can see a confirmation message when request to delete an
122
124
await t . expect ( browserPage . confirmationMessagePopover . textContent ) . contains ( confirmationMessage , `The confirmation message ${ keyName } ` ) ;
123
125
await t . expect ( browserPage . confirmationMessagePopover . textContent ) . contains ( entryId , 'The confirmation message for removing Entry' ) ;
124
126
} ) ;
127
+ test ( 'Verify that the Entry ID field, Delete button are always displayed while scrolling for Stream data' , async t => {
128
+ keyName = chance . word ( { length : 20 } ) ;
129
+ const fields = common . createArrayWithKeys ( 9 ) ;
130
+ const values = common . createArrayWithKeys ( 9 ) ;
131
+ //Add new Stream key with 3 fields
132
+ for ( let i = 0 ; i < fields . length ; i ++ ) {
133
+ await cliPage . sendCommandInCli ( `XADD ${ keyName } * ${ fields [ i ] } ${ values [ i ] } ` ) ;
134
+ }
135
+ //Open key details
136
+ await browserPage . openKeyDetails ( keyName ) ;
137
+ // Scroll right
138
+ await t . pressKey ( 'shift' ) . scroll ( browserPage . streamVirtualContainer , 'right' ) ;
139
+ // Verify that Entry ID field and Delete button are always displayed
140
+ await t . expect ( browserPage . streamFieldsValues . withText ( fields [ 5 ] ) . visible ) . ok ( `The Stream field ${ fields [ 5 ] } is not visible` )
141
+ . expect ( browserPage . removeEntryButton . visible ) . ok ( 'Delete icon is not visible' )
142
+ . expect ( browserPage . streamEntryDate . visible ) . ok ( 'Entry ID column is not visible' ) ;
143
+ } ) ;
0 commit comments