Skip to content

Commit 9e12b01

Browse files
fix e2e tests
1 parent 74f4046 commit 9e12b01

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

tests/e2e/pageObjects/monitor-page.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class MonitorPage {
1414
clearMonitorButton = Selector('[data-testid=clear-monitor]');
1515
hideMonitor = Selector('[data-testid=hide-monitor]');
1616
closeMonitor = Selector('[data-testid=close-monitor]');
17+
resetProfilerButton = Selector('[data-testid=reset-profiler-btn]');
1718
//TEXT ELEMENTS
1819
monitorIsStoppedText = Selector('[data-testid=monitor-stopped]');
1920
monitorIsStartedText = Selector('[data-testid=monitor-started]');
@@ -53,6 +54,6 @@ export class MonitorPage {
5354
*/
5455
async stopMonitor(): Promise<void> {
5556
await t.click(this.runMonitorToggle);
56-
await t.expect(this.monitorIsStoppedText.exists).ok('Profiler is stopped text');
57+
await t.expect(this.resetProfilerButton.visible).ok('Reset profiler button appeared');
5758
}
5859
}

tests/e2e/tests/critical-path/database/logical-databases.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test
2828
//Verify that user when users select DB index they can see info message how to work with DB index in add DB screen
2929
await t.expect(addRedisDatabasePage.databaseIndexMessage.visible).ok('Index message');
3030
await t.expect(addRedisDatabasePage.databaseIndexMessage.innerText).eql(indexDbMessage);
31-
await t.expect(addRedisDatabasePage.databaseIndexCheckbox.parent().withExactText('Select the Redis logical database').exists).ok('Checkbox text');
31+
await t.expect(addRedisDatabasePage.databaseIndexCheckbox.parent().withExactText('Select Logical Database').exists).ok('Checkbox text');
3232
//Click for saving
3333
await t.click(addRedisDatabasePage.addRedisDatabaseButton);
3434
//Verify that the database is in the list

tests/e2e/tests/regression/cli/cli-command-helper.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ test
205205
});
206206
test
207207
.meta({ env: env.web, rte: rte.standalone })('Verify that user can work with Bloom groups in Command Helper (RedisBloom module)', async t => {
208-
filteringGroups = ['Bf', 'CMS', 'TDigest', 'TopK', 'Cf'];
208+
filteringGroups = ['Bloom Filter', 'CMS', 'TDigest', 'TopK', 'Cuckoo Filter'];
209209
commandsToCheck = [
210210
'BF.MEXISTS',
211211
'CMS.QUERY',

tests/e2e/tests/regression/monitor/monitor.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ test
5151
await monitorPage.startMonitor();
5252
//Click on Stop Monitor button
5353
await t.click(monitorPage.runMonitorToggle);
54-
//Check for "Monitor is stopped." text
55-
await t.expect(monitorPage.monitorIsStoppedText.innerText).eql('Profiler is paused.', 'Paused profiler message');
54+
//Check that Monitor is stopped
55+
await t.expect(monitorPage.resetProfilerButton.visible).ok('Reset profiler button appeared');
5656
//Get the last log line
5757
const lastTimestamp = await monitorPage.monitorCommandLineTimestamp.nth(-1).textContent;
5858
//Click on refresh keys to get new logs

0 commit comments

Comments
 (0)