Skip to content

Commit febc14f

Browse files
authored
Merge pull request #1144 from RedisInsight/e2e/bugfix/failed-slow-log
fix slow log configuration
2 parents 7e76b1a + 17d1440 commit febc14f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/e2e/pageObjects/slow-log-page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class SlowLogPage {
3232
slowLogCommandValue = Selector('[data-testid=command-value]');
3333
slowLogEmptyResult = Selector('[data-testid=empty-slow-log]');
3434
slowLogCommandStatistics = Selector('[data-testid=entries-from-timestamp]');
35+
configInfo = Selector('[data-testid=config-info]');
3536
// Table
3637
slowLogTable = Selector('[data-testid=slowlog-table]');
3738

tests/e2e/tests/critical-path/slow-log/slow-log.e2e.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ test('Verify that user can reset settings to default on Slow Log page', async t
117117
await slowLogPage.changeMaxLengthParameter(maxCommandLength);
118118
// Reset settings to default
119119
await slowLogPage.resetToDefaultConfig();
120-
// Open Slow Log configuration and check default settings
121-
await t.expect(slowLogPage.slowLogSlowerThanConfig.withAttribute('value', '10000').exists).ok('Default Slower Than');
122-
await t.expect(slowLogPage.slowLogMaxLengthConfig.withAttribute('value', '128').exists).ok('Default Max Length');
123-
await t.expect(slowLogPage.slowLogConfigureUnitButton.withExactText('µs').exists).ok('Default Slower Than');
120+
// Compare configuration after re-setting
121+
const configText = await slowLogPage.configInfo.textContent;
122+
await t.expect(configText.replace(/\u00a0/g, ' ')).contains('Execution time: 10 000 µs, Max length: 128', 'Not reset configuration');
124123
});

0 commit comments

Comments
 (0)