@@ -12,6 +12,7 @@ import { DatabaseAPIRequests } from '../../../../helpers/api/api-database';
12
12
import { Common } from '../../../../helpers/common' ;
13
13
import { verifyKeysDisplayingInTheList } from '../../../../helpers/keys' ;
14
14
import { APIKeyRequests } from '../../../../helpers/api/api-keys' ;
15
+ import { goBackHistory } from '../../../../helpers/utils' ;
15
16
16
17
const browserPage = new BrowserPage ( ) ;
17
18
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
@@ -154,16 +155,14 @@ test
154
155
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneV5Config ) ;
155
156
} ) ( 'No RediSearch module message' , async t => {
156
157
const noRedisearchMessage = 'RediSearch is not available for this database' ;
157
- // const externalPageLink = 'https://redis.com/try-free/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_browser_search';
158
+ const externalPageLink = 'https://redis.com/try-free/?utm_source=redisinsight&utm_medium=app&utm_campaign=redisinsight_browser_search' ;
158
159
159
160
await t . click ( browserPage . redisearchModeBtn ) ;
160
161
// Verify that user can see message in the dialog when he doesn't have RediSearch module
161
162
await t . expect ( browserPage . noReadySearchDialogTitle . textContent ) . contains ( noRedisearchMessage , 'Invalid text in no redisearch popover' ) ;
162
- // update after resolving testcafe Native Automation mode limitations
163
- // // Verify that user can navigate by link to create a Redis db
164
- // await t.click(browserPage.redisearchFreeLink);
165
- // await Common.checkURL(externalPageLink);
166
- // await t.switchToParentWindow();
163
+ // Verify that user can navigate by link to create a Redis db
164
+ await t . click ( browserPage . redisearchFreeLink ) ;
165
+ await Common . checkURL ( externalPageLink ) ;
167
166
} ) ;
168
167
test
169
168
. before ( async ( ) => {
173
172
await browserPage . Cli . sendCommandInCli ( `FT.DROPINDEX ${ indexName } ` ) ;
174
173
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneBigConfig ) ;
175
174
} ) ( 'Index creation' , async t => {
176
- // const createIndexLink = 'https://redis.io/commands/ft.create/';
175
+ const createIndexLink = 'https://redis.io/commands/ft.create/' ;
177
176
178
177
// Verify that user can cancel index creation
179
178
await t . click ( browserPage . redisearchModeBtn ) ;
@@ -188,11 +187,10 @@ test
188
187
await t . click ( browserPage . selectIndexDdn ) ;
189
188
await t . click ( browserPage . createIndexBtn ) ;
190
189
await t . expect ( browserPage . newIndexPanel . exists ) . ok ( 'New Index panel is not displayed' ) ;
191
- // update after resolving testcafe Native Automation mode limitations
192
- // // Verify that user can see a link to create a profound index and navigate
193
- // await t.click(browserPage.newIndexPanel.find('a'));
194
- // await Common.checkURL(createIndexLink);
195
- // await t.switchToParentWindow();
190
+ // Verify that user can see a link to create a profound index and navigate
191
+ await t . click ( browserPage . newIndexPanel . find ( 'a' ) ) ;
192
+ await Common . checkURL ( createIndexLink ) ;
193
+ await goBackHistory ( ) ;
196
194
197
195
// Verify that user can create an index with multiple prefixes
198
196
await t . click ( browserPage . indexNameInput ) ;
0 commit comments