Skip to content

Commit 5d2b27a

Browse files
committed
fixing secrets for GH action
1 parent d6d6585 commit 5d2b27a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
run: npm ci
1818
- name: Install Playwright Browsers
1919
run: npx playwright install --with-deps
20+
- name: Create .env file from secrets
21+
run: |
22+
echo "LOGIN_USERNAME=${{ secrets.LOGIN_USERNAME }}" >> .env
23+
echo "LOGIN_PASSWORD=${{ secrets.LOGIN_PASSWORD }}" >> .env
2024
- name: Run Playwright tests
2125
run: npx playwright test
2226
- uses: actions/upload-artifact@v4

prompt/prompt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Specify timeouts and wait conditions for asynchronous actions.
1414
- Use only supported selectors and locators for UI automation.
1515
- If we are talking about password and other secret strings, save them properly in some secret way
16+
- Always suggest easiest solution whenever possible
1617
- **Examples:**
1718
- "Login with valid credentials and verify dashboard loads."
1819
- "Check that error message appears when submitting empty form."

0 commit comments

Comments
 (0)