Skip to content

Commit 794bfe0

Browse files
authored
Merge pull request #1148 from RedisInsight/e2e/bugfix/increase-test-speed
e2e/bugfix/increase-test-speed
2 parents 583d526 + dc5dae4 commit 794bfe0

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ jobs:
311311
- run:
312312
name: .AppImage tests
313313
command: |
314-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
314+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
315315
.circleci/e2e/test.app-image.sh
316316
- when:
317317
condition:
@@ -348,7 +348,7 @@ jobs:
348348
- run: choco install nodejs --version=16.15.1
349349
- run:
350350
command: |
351-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
351+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
352352
.circleci/e2e/test.exe.cmd
353353
shell: bash.exe
354354
- when:
@@ -399,7 +399,7 @@ jobs:
399399
- run:
400400
name: Run tests
401401
command: |
402-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
402+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
403403
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
404404
docker-compose \
405405
-f tests/e2e/rte.docker-compose.yml \
@@ -413,7 +413,7 @@ jobs:
413413
- run:
414414
name: Run tests
415415
command: |
416-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
416+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
417417
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
418418
docker-compose \
419419
-f tests/e2e/rte.docker-compose.yml \
@@ -1218,12 +1218,12 @@ workflows:
12181218
requires:
12191219
- Build docker image
12201220
# e2e desktop tests on AppImage build
1221-
- e2e-app-image:
1222-
name: E2ETest (AppImage) - Nightly
1223-
parallelism: 4
1224-
report: true
1225-
requires:
1226-
- Build app - Linux (stage)
1221+
# - e2e-app-image:
1222+
# name: E2ETest (AppImage) - Nightly
1223+
# parallelism: 4
1224+
# report: true
1225+
# requires:
1226+
# - Build app - Linux (stage)
12271227
# # e2e desktop tests on exe build
12281228
# - e2e-exe:
12291229
# name: E2ETest (exe) - Nightly

tests/e2e/helpers/database.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ export async function acceptLicenseTermsAndAddRECloudDatabase(databaseParameters
195195
export async function acceptLicenseTerms(): Promise<void> {
196196
await t.maximizeWindow();
197197
await userAgreementPage.acceptLicenseTerms();
198-
await t.expect(userAgreementPage.userAgreementsPopup.visible).notOk('The user agreements popup is not shown', { timeout: 2000 });
199198
}
200199

201200
//Accept License terms and connect to the RedisStack database

tests/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build:web": "yarn --cwd ../../ build:web",
1313
"redis:last": "docker run --name redis-last-version -p 7777:6379 -d redislabs/redismod",
1414
"start:app": "cross-env SERVER_STATIC_CONTENT=true yarn start:api",
15-
"test:chrome": "testcafe --concurrency 1 chrome tests/ -r html:./report/report.html,spec -e -s takeOnFails=true,path=report/screenshots,pathPattern=${OS}_${BROWSER}/${DATE}_${TIME}/${FIXTURE}_${TEST_ID}_${FILE_INDEX}.png",
15+
"test:chrome": "testcafe --cache --concurrency 1 chrome tests/ -r html:./report/report.html,spec -e -s takeOnFails=true,path=report/screenshots,pathPattern=${OS}_${BROWSER}/${DATE}_${TIME}/${FIXTURE}_${TEST_ID}_${FILE_INDEX}.png",
1616
"test:chrome:ci": "ts-node ./web.runner.ts",
1717
"test": "yarn test:chrome",
1818
"lint": "eslint . --ext .ts,.js,.tsx,.jsx",

tests/e2e/pageObjects/user-agreement-page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class UserAgreementPage {
2222
await t.click(this.recommendedSwitcher);
2323
await t.click(this.switchOptionEula);
2424
await t.click(this.submitButton);
25+
await t.expect(this.userAgreementsPopup.visible).notOk('The user agreements popup is not shown', { timeout: 2000 });
2526
}
2627
}
2728

tests/e2e/web.runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import testcafe from 'testcafe';
66
return t
77
.createRunner()
88
.src((process.env.TEST_FILES || 'tests/**/*.e2e.ts').split('\n'))
9-
.browsers(['chromium:headless --allow-insecure-localhost --ignore-certificate-errors'])
9+
.browsers(['chromium:headless --cache --allow-insecure-localhost --ignore-certificate-errors'])
1010
.filter((_testName, _fixtureName, _fixturePath, testMeta): boolean => {
1111
return testMeta.env !== 'desktop'
1212
})
@@ -30,6 +30,7 @@ import testcafe from 'testcafe';
3030
output: './report/report.html'
3131
}
3232
])
33+
// .concurrency(2)
3334
.run({
3435
skipJsErrors: true,
3536
browserInitTimeout: 60000,

0 commit comments

Comments
 (0)