@skills17/cypress-helpers
Advanced tools
Comparing version 3.1.1 to 4.0.0
"use strict"; | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
// @ts-ignore published types for custom commands are wrong | ||
Cypress.Commands.add('width', { | ||
@@ -7,3 +9,4 @@ prevSubject: true | ||
return subject[0].getBoundingClientRect().width; | ||
}); | ||
}); // @ts-ignore published types for custom commands are wrong | ||
Cypress.Commands.add('height', { | ||
@@ -13,3 +16,4 @@ prevSubject: true | ||
return subject[0].getBoundingClientRect().height; | ||
}); | ||
}); // @ts-ignore published types for custom commands are wrong | ||
Cypress.Commands.add('top', { | ||
@@ -19,3 +23,4 @@ prevSubject: true | ||
return subject[0].getBoundingClientRect().top; | ||
}); | ||
}); // @ts-ignore published types for custom commands are wrong | ||
Cypress.Commands.add('left', { | ||
@@ -25,3 +30,4 @@ prevSubject: true | ||
return subject[0].getBoundingClientRect().left; | ||
}); | ||
}); // @ts-ignore published types for custom commands are wrong | ||
Cypress.Commands.add('bottom', { | ||
@@ -31,3 +37,4 @@ prevSubject: true | ||
return subject[0].getBoundingClientRect().bottom; | ||
}); | ||
}); // @ts-ignore published types for custom commands are wrong | ||
Cypress.Commands.add('right', { | ||
@@ -34,0 +41,0 @@ prevSubject: true |
@@ -5,3 +5,3 @@ import Mocha from 'mocha'; | ||
private static testRun; | ||
private static showPoints; | ||
private static displayPoints; | ||
constructor(runner: Mocha.Runner); | ||
@@ -8,0 +8,0 @@ getTestRun(): TestRun; |
@@ -22,3 +22,3 @@ "use strict"; | ||
class ConsoleReporter { | ||
static showPoints = true; | ||
static displayPoints = true; | ||
@@ -33,3 +33,3 @@ constructor(runner) { | ||
ConsoleReporter.testRun = config.createTestRun(); | ||
ConsoleReporter.showPoints = config.arePointsShown(); | ||
ConsoleReporter.displayPoints = config.arePointsDisplayed(); | ||
process.on('exit', this.onRunEnd.bind(this)); | ||
@@ -58,3 +58,3 @@ } | ||
printFooter: process.env.CYPRESS_QUIET !== '1', | ||
printPoints: ConsoleReporter.showPoints | ||
printPoints: ConsoleReporter.displayPoints | ||
}); | ||
@@ -61,0 +61,0 @@ } |
{ | ||
"name": "@skills17/cypress-helpers", | ||
"version": "3.1.1", | ||
"version": "4.0.0", | ||
"description": "Provides some Cypress helpers for usage in a skills competition environment.", | ||
@@ -49,8 +49,8 @@ "main": "lib/index.js", | ||
"@types/uniqid": "^5.3.0", | ||
"@typescript-eslint/eslint-plugin": "^4.23.0", | ||
"@typescript-eslint/parser": "^4.23.0", | ||
"@typescript-eslint/eslint-plugin": "^5.5.0", | ||
"@typescript-eslint/parser": "^5.5.0", | ||
"babel-jest": "^27.1.0", | ||
"cypress": "^8.3.1", | ||
"eslint": "^7.26.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"cypress": "9.1.1", | ||
"eslint": "^8.4.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
@@ -66,6 +66,6 @@ "eslint-plugin-import": "^2.22.1", | ||
"dependencies": { | ||
"@skills17/static-task-server": "^2.0.0", | ||
"@skills17/task-config": "^2.2.1", | ||
"@skills17/test-result": "^2.0.4", | ||
"@skills17/test-result-printer": "^2.1.1", | ||
"@skills17/static-task-server": "^3.0.0", | ||
"@skills17/task-config": "^3.0.1", | ||
"@skills17/test-result": "^2.1.0", | ||
"@skills17/test-result-printer": "^2.1.2", | ||
"cross-spawn": "^7.0.3", | ||
@@ -76,4 +76,4 @@ "npm-run-path": "^4.0.1", | ||
"peerDependencies": { | ||
"cypress": "^8.0.0" | ||
"cypress": "^9.1.1" | ||
} | ||
} |
@@ -63,5 +63,5 @@ # skills17/cypress-helpers | ||
A `config.json` file needs to be created that contains some information about the task. It should be placed in the root folder of your task, next to the `package.json` file. | ||
A `config.yaml` file needs to be created that contains some information about the task. It should be placed in the root folder of your task, next to the `package.json` file. | ||
See the [`@skills17/task-config`](https://github.com/skills17/task-config#configuration) package for a detailed description of all available properties in the `config.json` file. | ||
See the [`@skills17/task-config`](https://github.com/skills17/task-config#configuration) package for a detailed description of all available properties in the `config.yaml` file. | ||
@@ -84,3 +84,3 @@ ### CLI | ||
In JS, tests are grouped by a test name prefix defined in the `config.json` file. | ||
In JS, tests are grouped by a test name prefix defined in the `config.yaml` file. | ||
@@ -107,3 +107,3 @@ All context are concatenated with the actual test names before evaluation. | ||
This has to be served in order for cypress to be able to access it. | ||
This package respects the [`serve` option](https://github.com/skills17/task-config#serve-serve) in the `config.json` and automatically starts a static file server for the paths defined there if it is enabled (`serve.enabled` has to be set to `true`). | ||
This package respects the [`serve` option](https://github.com/skills17/task-config#serve-serve) in the `config.yaml` and automatically starts a static file server for the paths defined there if it is enabled (`serve.enabled` has to be set to `true`). | ||
@@ -110,0 +110,0 @@ The base path is also automatically set for cypress, so you can omit the host and directly start with the path in any cypress statements (e.g. `cy.visit('/countries')`). |
23454
380
+ Added@skills17/static-task-server@3.0.0(transitive)
+ Added@skills17/task-config@3.0.1(transitive)
+ Added@types/sinonjs__fake-timers@8.1.1(transitive)
+ Addedajv@8.16.0(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcypress@9.7.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedsemver@7.6.2(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removed@skills17/static-task-server@2.0.0(transitive)
- Removed@skills17/task-config@2.2.1(transitive)
- Removed@types/sinonjs__fake-timers@6.0.4(transitive)
- Removedcypress@8.7.0(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.12.1(transitive)
- Removedramda@0.27.2(transitive)
- Removedurl@0.11.3(transitive)
Updated@skills17/task-config@^3.0.1
Updated@skills17/test-result@^2.1.0