Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/actions/e2e-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ runs:
max_attempts: 2
retry_on: error
timeout_minutes: 20
on_retry_command: |
lsof -ti:3000 | xargs kill -9 || true
env:
E2E_TEST_TOKEN: ${{ inputs.e2e_test_token }}
SLACK_TOKEN: ${{ inputs.slack_token }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/.reusable-docker-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ jobs:
max_attempts: 2
retry_on: error
timeout_minutes: 20
on_retry_command: |
cd frontend
docker compose down --remove-orphans || true
env:
opts: ${{ inputs.args }}
API_IMAGE: ${{ inputs.api-image }}
Expand Down
6 changes: 6 additions & 0 deletions frontend/e2e/index.cafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const dir = path.join(__dirname, '../reports/screen-captures');
if (fs.existsSync(dir)) {
fs.rmdirSync(dir, { recursive: true });
}

const start = Date.now().valueOf();
// Parse CLI arg --meta-filter
const args = minimist(process.argv.slice(2));
Expand Down Expand Up @@ -79,4 +80,9 @@ createTestCafe()
server.kill('SIGINT');
testcafe.close();
process.exit(v);
}) .catch(async (err) => {
console.error('TestCafe initialisation error:', err);
if (server) server.kill('SIGINT');
if (testcafe) testcafe.close();
process.exit(1);
});
Loading