Skip to content

Commit 3eb7f9d

Browse files
committed
fix:testeCinco
1 parent 3a752ca commit 3eb7f9d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727

2828
- name: Run Playwright tests
2929
env:
30-
GOREST_BASE_URL: ${{ secrets.GOREST_BASE_URL }}
3130
GOREST_TOKEN: ${{ secrets.GOREST_TOKEN }}
31+
GOREST_BASE_URL: ${{ secrets.GOREST_BASE_URL }}
3232
run: npx playwright test
3333

3434
- name: Upload Test Report

playwright.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ export default defineConfig({
3131
reporter: 'html',
3232
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3333
use: {
34-
baseURL: process.env.GOREST_BASE_URL,
34+
baseURL: 'https://www.saucedemo.com',
3535
trace: 'on-first-retry',
3636
screenshot: 'only-on-failure',
37+
extraHTTPHeaders: {
38+
Authorization: `Bearer ${process.env.GOREST_TOKEN}`,
39+
},
3740
},
3841

3942
/* Configure projects for major browsers */

0 commit comments

Comments
 (0)