@qavajs/cypress 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -9,7 +9,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
9
9
  :x: - deprecation/removal
10
10
  :pencil: - chore
11
11
  :microscope: - experimental
12
-
12
+
13
+ ## [0.1.1]
14
+ - :beetle: fix wrong import
15
+
13
16
  ## [0.1.0]
14
17
  - :rocket: initial implementation
15
18
 
package/lib/setup.js CHANGED
@@ -1,31 +1,24 @@
1
- import {po} from '@qavajs/po-cypress';
2
- import App from '../test-e2e/page_object';
1
+ import { po } from '@qavajs/po-cypress';
3
2
  import memory from '@qavajs/memory';
4
- import Memory from '../test-e2e/memory';
5
3
  import { setWorldConstructor } from '@qavajs/cypress-runner-adapter';
6
4
 
5
+ const logger = {
6
+ log: (value) => {
7
+ const [displayName, message] = value.split(/\s->\s/);
8
+ Cypress.log({
9
+ displayName,
10
+ message
11
+ })
12
+ }
13
+ };
14
+
7
15
  export class QavajsCypressWorld {
8
16
 
9
17
  constructor() {
10
- po.init(cy, { logger: { log: (value) => {
11
- const [displayName, message] = value.split(/\s->\s/);
12
- Cypress.log({
13
- displayName,
14
- message
15
- })
16
- }
17
- }
18
- });
18
+ po.init(cy, { logger });
19
19
  po.register(window.pageObject);
20
20
  memory.register(window.memory);
21
- memory.setLogger({ log: (value) => {
22
- const [displayName, message] = value.split(/\s->\s/);
23
- Cypress.log({
24
- displayName,
25
- message
26
- })
27
- }
28
- });
21
+ memory.setLogger(logger);
29
22
  this.po = po;
30
23
  this.memory = memory;
31
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qavajs/cypress",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "qavajs compatible framework on cypress runner",
5
5
  "main": "",
6
6
  "scripts": {
@@ -18,8 +18,5 @@
18
18
  "@qavajs/memory": "^1.7.0",
19
19
  "@qavajs/po-cypress": "^0.2.0",
20
20
  "cypress": "^13.11.0"
21
- },
22
- "dependencies": {
23
- "@qavajs/validation": "^0.8.0"
24
21
  }
25
22
  }