@koenvanbelle/cypress-soft-assertions 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ Standard Cypress assertions stop test execution at the first failure. With `soft
|
|
|
16
16
|
Install the plugin as a development dependency:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install cypress-soft-assertions --save-dev
|
|
19
|
+
npm install @koenvanbelle/cypress-soft-assertions --save-dev
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
or using Yarn:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
yarn add cypress-soft-assertions --dev
|
|
25
|
+
yarn add @koenvanbelle/cypress-soft-assertions --dev
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Integration
|
|
@@ -34,13 +34,13 @@ Add the import to your Cypress support file. This registers the `soft_it()` func
|
|
|
34
34
|
**For TypeScript projects** - Edit `cypress/support/e2e.ts` (or `cypress/support/commands.ts`):
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
-
import 'cypress-soft-assertions';
|
|
37
|
+
import '@koenvanbelle/cypress-soft-assertions';
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
**For JavaScript projects** - Edit `cypress/support/e2e.js` (or `cypress/support/commands.js`):
|
|
41
41
|
|
|
42
42
|
```javascript
|
|
43
|
-
require('cypress-soft-assertions');
|
|
43
|
+
require('@koenvanbelle/cypress-soft-assertions');
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
### Step 2: Add Type Definitions (TypeScript only)
|
|
@@ -286,4 +286,4 @@ SOFT ASSERTION FAILURES (4 failed):
|
|
|
286
286
|
3. expected '<div.tax>' to contain '$8.75', but it contained '$7.50'
|
|
287
287
|
4. expected '<div.grand-total>' to contain '$113.74', but it contained '$102.49'
|
|
288
288
|
================================================================================
|
|
289
|
-
```
|
|
289
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koenvanbelle/cypress-soft-assertions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "A Cypress plugin that provides soft_it() for soft assertions - all assertions continue on failure and are reported together",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|