Skip to content

Commit

Permalink
qase-examples: fixed some issues in examples project
Browse files Browse the repository at this point in the history
Fixed the following issues:
- playwright: rename a test (error with duplicates) and update the `nmp run test` command
- testcafe: update the `nmp run test` command (error with incorrect browser name)
- cypress: updated import (error with incorrect import)
  • Loading branch information
gibiw authored and NickVolynkin committed Apr 16, 2024
1 parent 9ea32a8 commit bee346c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/cypress/cypress/e2e/second.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { qase } from 'cypress-qase-reporter';
import { qase } from 'cypress-qase-reporter/mocha';

describe('My First Test', () => {
qase(1, it('clicking "type" navigates to a new url', () => {
Expand Down
4 changes: 2 additions & 2 deletions examples/playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "examples-playwright",
"private": true,
"scripts": {
"test": "rm -r ./build/qase-report/results && QASE_MODE=testops npx playwright test"
"test": "QASE_MODE=testops npx playwright test"
},
"devDependencies": {
"@playwright/test": "^1.34.3",
"playwright-qase-reporter": "^2.0.0-beta.5"
"playwright-qase-reporter": "^2.0.0-beta.10"
}
}
4 changes: 2 additions & 2 deletions examples/playwright/test/arith.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ test.describe.parallel('Test suite. Level 1', () => {
expect(mul(3, 4)).toBe(12);
});

test('3 * 4 = 12', async () => {
test('3 * 5 = 15', async () => {
await new Promise((r) => setTimeout(r, 2000));
expect(mul(3, 4)).toBe(12);
expect(mul(3, 5)).toBe(15);
});

test('5 - 6 = -1', () => {
Expand Down
2 changes: 1 addition & 1 deletion examples/testcafe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "examples-testcafe",
"private": true,
"scripts": {
"test": "QASE_MODE=testops npx testcafe \"chromium:headless\" test.js test2.js -r spec,qase -s path=screenshots,takeOnFails=true"
"test": "QASE_MODE=testops npx testcafe \"chrome\" test.js test2.js -r spec,qase -s path=screenshots,takeOnFails=true"
},
"devDependencies": {
"eslint-plugin-testcafe": "^0.2.1",
Expand Down

0 comments on commit bee346c

Please sign in to comment.