Skip to content

Commit

Permalink
use commit name
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Nov 7, 2023
1 parent e8d558f commit 7154171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/tasks/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yarn playwright install-deps
yarn playwright install

mkdir -p $PLAYWRIGHT_HTML_REPORT
export GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`
export GIT_COMMIT=`git rev-parse HEAD`

yarn create-test-users
yarn playwright test
Expand Down
4 changes: 2 additions & 2 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { defineConfig, devices } = require('@playwright/test');
*/

const APP_ENV = process.env.APP_ENV || 'local';
const GIT_BRANCH = process.env.GIT_BRANCH || 'local';
const GIT_COMMIT = process.env.GIT_COMMIT || 'local';

module.exports = defineConfig({
testDir: './e2e',
Expand All @@ -26,7 +26,7 @@ module.exports = defineConfig({
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
['html', { host: '0.0.0.0', outputFolder: `playwright-report/${APP_ENV}/${GIT_BRANCH}` }],
['html', { host: '0.0.0.0', outputFolder: `playwright-report/${APP_ENV}/${GIT_COMMIT}` }],
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
Expand Down

0 comments on commit 7154171

Please sign in to comment.