Skip to content

Commit 2f68474

Browse files
authored
Merge pull request #2666 from RedisInsight/e2e/feature/desktop-tests-refactoring
E2e/feature/desktop tests refactoring
2 parents e5b4214 + 5717b87 commit 2f68474

File tree

187 files changed

+3454
-2351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+3454
-2351
lines changed

.circleci/config.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ jobs:
372372
- run:
373373
name: .AppImage tests
374374
command: |
375-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
375+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/electron/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
376376
.circleci/e2e/test.app-image.sh
377377
- when:
378378
condition:
@@ -409,7 +409,7 @@ jobs:
409409
- run: choco install nodejs --version=18.15.0
410410
- run:
411411
command: |
412-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
412+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/electron/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
413413
.circleci/e2e/test.exe.cmd
414414
shell: bash.exe
415415
- when:
@@ -460,7 +460,7 @@ jobs:
460460
- run:
461461
name: Run tests
462462
command: |
463-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
463+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/web/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
464464
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
465465
docker-compose \
466466
-f tests/e2e/rte.docker-compose.yml \
@@ -474,7 +474,7 @@ jobs:
474474
- run:
475475
name: Run tests
476476
command: |
477-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
477+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/web/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
478478
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
479479
docker-compose \
480480
-f tests/e2e/rte.docker-compose.yml \
@@ -1208,6 +1208,18 @@ workflows:
12081208
requires:
12091209
- itest-code
12101210
# E2E tests
1211+
- setup-sign-certificates:
1212+
name: Setup sign certificates (stage)
1213+
requires:
1214+
- Start All Tests
1215+
- setup-build:
1216+
name: Setup build (stage)
1217+
requires:
1218+
- Setup sign certificates (stage)
1219+
- linux:
1220+
name: Build app - Linux (stage)
1221+
requires:
1222+
- Setup build (stage)
12111223
- docker:
12121224
name: Build docker image
12131225
requires:
@@ -1218,6 +1230,11 @@ workflows:
12181230
parallelism: 4
12191231
requires:
12201232
- Build docker image
1233+
- e2e-app-image:
1234+
name: E2ETest (AppImage)
1235+
parallelism: 2
1236+
requires:
1237+
- Build app - Linux (stage)
12211238
# Approve to build
12221239
- approve:
12231240
name: Build App

tests/e2e/desktop.runner.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ import testcafe from 'testcafe';
1010
configPath: 'tsconfig.testcafe.json',
1111
experimentalDecorators: true
1212
}})
13-
.src((process.env.TEST_FILES || 'tests/**/*.e2e.ts').split('\n'))
13+
.src((process.env.TEST_FILES || 'tests/electron/**/*.e2e.ts').split('\n'))
1414
.browsers(['electron'])
15-
.filter((_testName, _fixtureName, _fixturePath, testMeta): boolean => {
16-
return testMeta.env == 'desktop'
17-
})
1815
.screenshots({
19-
path: 'report/screenshots/',
16+
path: './report/screenshots/',
2017
takeOnFails: true,
2118
pathPattern: '${USERAGENT}/${DATE}_${TIME}/${FIXTURE}_${TEST}_${FILE_INDEX}.png',
2219
})

tests/e2e/desktop.runner.win.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ import testcafe from 'testcafe';
1010
configPath: 'tsconfig.testcafe.json',
1111
experimentalDecorators: true
1212
}})
13-
.src((process.env.TEST_FILES || 'tests/**/*.e2e.ts').split('\n'))
13+
.src((process.env.TEST_FILES || 'tests/electron/**/*.e2e.ts').split('\n'))
1414
.browsers(['electron'])
15-
.filter((_testName, _fixtureName, _fixturePath, testMeta): boolean => {
16-
return testMeta.env == 'desktop' && testMeta.rte === 'standalone';
17-
})
1815
.screenshots({
1916
path: 'report/screenshots/',
2017
takeOnFails: true,

tests/e2e/tests/critical-path/database/modules.e2e.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

tests/e2e/tests/critical-path/files-auto-update/promo-button-autoupdate.e2e.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

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

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)