Skip to content

Commit

Permalink
fixs: Update files for Azure (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegocortes15 authored Apr 24, 2023
1 parent 997118b commit f8468e3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .azure-pipeline/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ jobs:
vmImage: "ubuntu-latest"

steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: NodeTool@0
inputs:
versionSpec: "16.x"
displayName: "Install Node.js"

- script: |
npm ci
displayName: 'Install dependecies'
- script: |
npm ci
displayName: "Install dependencies"
- script: |
npm install rimraf
displayName: 'Install rimraf'
- script: |
npm install rimraf
displayName: 'Install rimraf'
- script: |
npx playwright install --with-deps
displayName: 'Install Playwright Browsers'
- script: |
npx playwright install --with-deps
displayName: 'Install Playwright Browsers'
- script: |
npm run test:execute
displayName: "Run Playwright tests"
- script: |
npm run test:execute
displayName: "Run Playwright tests"
- publish: $(System.DefaultWorkingDirectory)/target/site/serenity
artifact: serenity-report
- publish: $(System.DefaultWorkingDirectory)/target/site/serenity
artifact: serenity-report

condition: always()
condition: always()
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ To run all tests and open serenity report
```bash
npm run test
```

At the end, will be generated a serenity report like this

![serenityReport](https://user-images.githubusercontent.com/60171460/233871291-4bc7ae00-3230-4472-887b-483e662eb037.gif)
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config: PlaywrightTestConfig = {
timeout: 30_000,
},
/* Run tests in files in parallel */
fullyParallel: true,
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
Expand Down

0 comments on commit f8468e3

Please sign in to comment.