Skip to content

Commit e93df83

Browse files
committed
fix env prioritization
1 parent 2022ba8 commit e93df83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ async function getSecrets() {
3030
if (!process.env.PLAYWRIGHT_USERNAME || !process.env.PLAYWRIGHT_PASSWORD) {
3131
keyData = await getSecretValue('infra-core-api-config')
3232
}
33-
response['PLAYWRIGHT_USERNAME'] = process.env.PLAYWRIGHT_USERNAME || keyData ? keyData['playwright_username'] : '';
34-
response['PLAYWRIGHT_PASSWORD'] = process.env.PLAYWRIGHT_PASSWORD || keyData ? keyData['playwright_password'] : '';
33+
response['PLAYWRIGHT_USERNAME'] = process.env.PLAYWRIGHT_USERNAME || (keyData ? keyData['playwright_username'] : '');
34+
response['PLAYWRIGHT_PASSWORD'] = process.env.PLAYWRIGHT_PASSWORD || (keyData ? keyData['playwright_password'] : '');
3535
return response;
3636
}
3737

0 commit comments

Comments
 (0)