Skip to content

Commit 1eb664f

Browse files
remove reloading from test
1 parent d0c32ba commit 1eb664f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/e2e/tests/critical-path/cli/cli-command-helper.e2e.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ test('Verify that user can type TS. in Command helper and see commands from Redi
126126
for(let i = 0; i < commandsFilterCount; i++) {
127127
timeSeriesCommands.push(await cliPage.cliHelperOutputTitles.nth(i).textContent);
128128
}
129-
//Reload Page
130-
await t.eval(() => location.reload());
129+
//Unselect group from list
130+
await cliPage.selectFilterGroupType(COMMAND_GROUP_TIMESERIES);
131131
//Search per command
132-
await t.click(cliPage.cliExpandButton);
133132
await t.typeText(cliPage.cliHelperSearch, commandForSearch);
134133
//Verify results in the output
135134
const commandsCount = await cliPage.cliHelperOutputTitles.count;
@@ -149,10 +148,9 @@ test('Verify that user can type GRAPH. in Command helper and see auto-suggestion
149148
for(let i = 0; i < commandsFilterCount; i++) {
150149
graphCommands.push(await cliPage.cliHelperOutputTitles.nth(i).textContent);
151150
}
152-
//Reload Page
153-
await t.eval(() => location.reload());
151+
//Unselect group from list
152+
await cliPage.selectFilterGroupType(COMMAND_GROUP_GRAPH);
154153
//Search per command
155-
await t.click(cliPage.cliExpandButton);
156154
await t.typeText(cliPage.cliHelperSearch, commandForSearch);
157155
//Verify results in the output
158156
const commandsCount = await cliPage.cliHelperOutputTitles.count;

0 commit comments

Comments
 (0)