@@ -16,7 +16,7 @@ const dbParameters = { host: ossStandaloneRedisearch.host, port: ossStandaloneRe
16
16
const keyToAddParameters = { keysCount : 10000 , keyNameStartWith : 'hashKey' } ;
17
17
const keyToAddParameters2 = { keysCount : 500000 , keyNameStartWith : 'hashKey' } ;
18
18
19
- fixture `Bulk Delete`
19
+ fixture `Bulk Delete`
20
20
. meta ( { type : 'critical_path' , rte : rte . standalone } )
21
21
. page ( commonUrl )
22
22
. beforeEach ( async t => {
@@ -27,7 +27,7 @@ fixture `Bulk Delete`
27
27
await t . click ( browserPage . Toast . toastCloseButton ) ;
28
28
}
29
29
} )
30
- . afterEach ( async ( ) => {
30
+ . afterEach ( async ( ) => {
31
31
// Clear and delete database
32
32
await deleteAllKeysFromDB ( dbParameters . host , dbParameters . port ) ;
33
33
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneRedisearch ) ;
@@ -87,7 +87,7 @@ test('Verify that user can see blue progress line during the process of bulk del
87
87
await t . expect ( browserPage . BulkActions . bulkStatusInProgress . exists ) . ok ( 'Progress value not displayed' , { timeout : 5000 } ) ;
88
88
} ) ;
89
89
test
90
- . before ( async ( ) => {
90
+ . before ( async ( ) => {
91
91
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneRedisearch ) ;
92
92
// Add 1000000 Hash keys
93
93
await populateDBWithHashes ( dbParameters . host , dbParameters . port , keyToAddParameters2 ) ;
105
105
await t . expect ( browserPage . BulkActions . bulkStatusInProgress . exists ) . ok ( 'Progress value not displayed' , { timeout : 5000 } ) ;
106
106
} ) ;
107
107
test
108
- . before ( async ( ) => {
108
+ . before ( async ( ) => {
109
109
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneRedisearch ) ;
110
110
// Add 500000 keys
111
111
await populateDBWithHashes ( dbParameters . host , dbParameters . port , keyToAddParameters2 ) ;
@@ -185,3 +185,19 @@ test('Verify that when user clicks on Close button when bulk delete is completed
185
185
await t . expect ( browserPage . BulkActions . bulkDeleteCompletedSummary . exists ) . notOk ( 'Bulk delete completed summary still displayed' ) ;
186
186
await t . expect ( browserPage . BulkActions . bulkDeleteSummary . textContent ) . contains ( 'Scanned 100% (2/2) and found 1 keys' , 'Bulk delete summary is not correct' ) ;
187
187
} ) ;
188
+ test
189
+ . before ( async ( ) => {
190
+ await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneRedisearch ) ;
191
+ await browserPage . addHashKey ( keyNames [ 0 ] , '100000' , Common . generateWord ( 20 ) , Common . generateWord ( 20 ) ) ;
192
+ } ) ( 'Verify that user can see the list of keys when click on “Back” button from the bulk actions' , async t => {
193
+ await t . click ( browserPage . bulkActionsButton ) ;
194
+ await t . expect ( browserPage . backToBrowserBtn . exists ) . notOk ( '"< Browser" button displayed for normal screen resolution' ) ;
195
+ // Minimize the window to check icon
196
+ await t . resizeWindow ( 1200 , 900 ) ;
197
+ await t . expect ( browserPage . keyDetailsTable . visible ) . ok ( 'Bulk actions not opened' , { timeout : 1000 } ) ;
198
+ // Verify that user can see the “Back” button when work with the bulk actions on small resolutions
199
+ await t . expect ( browserPage . backToBrowserBtn . exists ) . ok ( '"< Browser" button not displayed for small screen resolution' ) ;
200
+ await t . click ( browserPage . backToBrowserBtn ) ;
201
+ // Verify that key details closed
202
+ await t . expect ( browserPage . keyDetailsTable . visible ) . notOk ( 'Bulk actions not closed by clicking on "< Browser" button' , { timeout : 1000 } ) ;
203
+ } ) ;
0 commit comments