Skip to content

Commit 6c29ed0

Browse files
authored
Merge pull request #1269 from RedisInsight/e2e/bugfix/RI-3582-profiler-skipped-tests-temporary-folder
E2e/bugfix/ri 3582 profiler skipped tests temporary folder
2 parents 3354081 + 06797a4 commit 6c29ed0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/e2e/docker.web.docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
- ./report:/usr/src/app/report
1212
- ./plugins:/usr/src/app/plugins
1313
- .redisinsight-v2:/root/.redisinsight-v2
14+
- .ritmp:/tmp
1415
env_file:
1516
- ./.env
1617
entrypoint: [
@@ -38,4 +39,5 @@ services:
3839
- ./.env
3940
volumes:
4041
- .redisinsight-v2:/root/.redisinsight-v2
42+
- .ritmp:/tmp
4143

tests/e2e/tests/critical-path/monitor/save-commands.e2e.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ test
7575
//Check the toggle
7676
await t.expect(monitorPage.saveLogSwitchButton.visible).notOk('The toggle is not displayed when Profiler is started');
7777
});
78-
//skipped due the temp file is not created after the start of profiler
79-
test.skip
78+
test
8079
.meta({ rte: rte.standalone })('Verify that when user switch toggle to ON and started the Profiler, temporary Log file Created and recording', async t => {
8180
const cli_command = 'command';
8281
//Remember the number of files in Temp
@@ -87,7 +86,7 @@ test.skip
8786
await cliPage.getSuccessCommandResultFromCli(cli_command);
8887
await monitorPage.checkCommandInMonitorResults(cli_command);
8988
//Verify that temporary Log file Created
90-
await t.expect(numberOfTempFiles).gt(fs.readdirSync(tempDir).length, 'The temporary Log file is created');
89+
await t.expect(numberOfTempFiles).lt(fs.readdirSync(tempDir).length, 'The temporary Log file is not created');
9190
});
9291
test
9392
.meta({ rte: rte.standalone })('Verify that when user switch toggle to OFF and started the Profiler, temporary Log file is not Created and recording', async t => {
@@ -96,7 +95,7 @@ test
9695
//Start Monitor with Save logs
9796
await monitorPage.startMonitor();
9897
//Verify that temporary Log file is not created
99-
await t.expect(numberOfTempFiles).lte(fs.readdirSync(tempDir).length, 'The temporary Log file is not created');
98+
await t.expect(numberOfTempFiles).gte(fs.readdirSync(tempDir).length, 'The temporary Log file is created');
10099
});
101100
test
102101
.meta({ rte: rte.standalone })('Verify the Profiler Button panel when toggle was switched to ON and user pauses/resumes the Profiler', async t => {

0 commit comments

Comments
 (0)