Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ commands:
- run:
name: "Generate access token"
command: |
node test/scripts/gen-token.mjs $CLIENT_IDENTITY test/app/src/e2e-tests-token.ts
node test/scripts/gen-token.mjs $CLIENT_IDENTITY call test/app/src/e2e-tests-token.ts
node test/scripts/gen-token.mjs $CLIENT_IDENTITY preflightTest test/app/src/e2e-preflightTest-token.ts

clear-detox-cache:
description: "Clears detox framework cache"
Expand Down Expand Up @@ -278,9 +279,11 @@ jobs:
configuration: <<parameters.detox_configuration>>
- detox-test:
configuration: <<parameters.detox_configuration>>
artifacts: <<parameters.artifacts_location>>
artifacts: ./detox_artifacts
screenshots: all
- store_artifacts:
path: ./test/app/test-report.html
when: always
path: ./test/app/detox_artifacts

e2e-android:
executor:
Expand Down Expand Up @@ -448,4 +451,4 @@ workflows:
jobs:
- trigger-qe-tests:
context: sdks-qe
name: Test QE Regression Tests Trigger
name: Test QE Regression Tests Trigger
3 changes: 3 additions & 0 deletions test/app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ yarn-error.log

# Secrets
/src/e2e-tests-token.*.ts
/src/e2e-preflightTest-token.*.ts
/src/e2e-tests-token.ts
/src/e2e-preflightTest-token.ts
/android/app/google-services.json
2 changes: 1 addition & 1 deletion test/app/e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
rootDir: '..',
testMatch: ['<rootDir>/e2e/**/*.test.ts'],
testMatch: ['<rootDir>/e2e/suites/**/*.test.ts'],
testTimeout: 120000,
maxWorkers: 1,
globalSetup: 'detox/runners/jest/globalSetup',
Expand Down
3 changes: 2 additions & 1 deletion test/app/e2e/suites/call.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('call', () => {

beforeEach(async () => {
await device.reloadReactNative();
await element(by.text('CALL SUITE')).tap();
});

if (device.getPlatform() === 'ios') {
Expand Down Expand Up @@ -77,7 +78,7 @@ describe('call', () => {
log.includes('constant-audio-output-level');

return qualityWarningsChangedEvent && (constantAudioInputWarning || constantAudioOutputWarning);
}
};

// check the call quality warnings every 5 seconds
// for a total of 30 seconds
Expand Down
3 changes: 2 additions & 1 deletion test/app/e2e/suites/callMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { bootstrapTwilioClient } from '../common/twilioClient';
import { pollValidateLog, getRegExpMatch } from '../common/logParser';

const DEFAULT_TIMEOUT = 10000;
const RELAY_SERVER_URL = 'http://localhost:4040'
const RELAY_SERVER_URL = 'http://localhost:4040';

describe('call', () => {
let twilioClient: ReturnType<typeof twilio>;
Expand Down Expand Up @@ -187,6 +187,7 @@ describe('call', () => {

beforeEach(async () => {
await device.reloadReactNative();
await element(by.text('CALL SUITE')).tap();

if (device.getPlatform() !== 'ios') {
await toggleLogFormat();
Expand Down
Loading