@elastic/synthetics 1.0.0-beta.31 → 1.0.0-beta.32

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.
Files changed (72) hide show
  1. package/dist/cli.js +51 -26
  2. package/dist/cli.js.map +1 -1
  3. package/dist/common_types.d.ts +2 -0
  4. package/dist/common_types.d.ts.map +1 -1
  5. package/dist/core/runner.d.ts.map +1 -1
  6. package/dist/core/runner.js +4 -3
  7. package/dist/core/runner.js.map +1 -1
  8. package/dist/dsl/monitor.d.ts +2 -1
  9. package/dist/dsl/monitor.d.ts.map +1 -1
  10. package/dist/dsl/monitor.js +2 -2
  11. package/dist/dsl/monitor.js.map +1 -1
  12. package/dist/generator/index.d.ts +11 -3
  13. package/dist/generator/index.d.ts.map +1 -1
  14. package/dist/generator/index.js +98 -27
  15. package/dist/generator/index.js.map +1 -1
  16. package/dist/generator/utils.d.ts +2 -1
  17. package/dist/generator/utils.d.ts.map +1 -1
  18. package/dist/generator/utils.js +27 -4
  19. package/dist/generator/utils.js.map +1 -1
  20. package/dist/helpers.d.ts +9 -5
  21. package/dist/helpers.d.ts.map +1 -1
  22. package/dist/helpers.js +37 -10
  23. package/dist/helpers.js.map +1 -1
  24. package/dist/locations/index.d.ts +45 -0
  25. package/dist/locations/index.d.ts.map +1 -0
  26. package/dist/locations/index.js +90 -0
  27. package/dist/locations/index.js.map +1 -0
  28. package/dist/{dsl/locations.d.ts → locations/public-locations.d.ts} +1 -1
  29. package/dist/locations/public-locations.d.ts.map +1 -0
  30. package/dist/{dsl/locations.js → locations/public-locations.js} +1 -1
  31. package/dist/locations/public-locations.js.map +1 -0
  32. package/dist/options.d.ts +7 -0
  33. package/dist/options.d.ts.map +1 -1
  34. package/dist/options.js +21 -1
  35. package/dist/options.js.map +1 -1
  36. package/dist/push/bundler.d.ts.map +1 -1
  37. package/dist/push/bundler.js +7 -2
  38. package/dist/push/bundler.js.map +1 -1
  39. package/dist/push/index.d.ts +6 -1
  40. package/dist/push/index.d.ts.map +1 -1
  41. package/dist/push/index.js +124 -5
  42. package/dist/push/index.js.map +1 -1
  43. package/dist/push/monitor.d.ts +2 -0
  44. package/dist/push/monitor.d.ts.map +1 -1
  45. package/dist/push/monitor.js +23 -7
  46. package/dist/push/monitor.js.map +1 -1
  47. package/dist/push/request.d.ts +8 -7
  48. package/dist/push/request.d.ts.map +1 -1
  49. package/dist/push/request.js +21 -22
  50. package/dist/push/request.js.map +1 -1
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +1 -1
  53. package/src/cli.ts +79 -59
  54. package/src/common_types.ts +2 -0
  55. package/src/core/runner.ts +5 -6
  56. package/src/dsl/monitor.ts +2 -1
  57. package/src/generator/index.ts +138 -34
  58. package/src/generator/utils.ts +29 -3
  59. package/src/helpers.ts +35 -11
  60. package/src/locations/index.ts +108 -0
  61. package/src/{dsl/locations.ts → locations/public-locations.ts} +0 -0
  62. package/src/options.ts +38 -0
  63. package/src/push/bundler.ts +7 -2
  64. package/src/push/index.ts +150 -7
  65. package/src/push/monitor.ts +37 -9
  66. package/src/push/request.ts +26 -34
  67. package/templates/journeys/advanced-example-helpers.ts +9 -9
  68. package/templates/journeys/advanced-example.journey.ts +6 -6
  69. package/templates/journeys/example.journey.ts +1 -1
  70. package/templates/synthetics.config.ts +2 -1
  71. package/dist/dsl/locations.d.ts.map +0 -1
  72. package/dist/dsl/locations.js.map +0 -1
@@ -2,7 +2,7 @@ import { journey } from '@elastic/synthetics';
2
2
  import {
3
3
  loadAppStep,
4
4
  addTaskStep,
5
- assertTaskListSizeStep,
5
+ assertTaskListCountStep,
6
6
  checkForTaskStep,
7
7
  destroyTaskStep,
8
8
  } from './advanced-example-helpers';
@@ -17,10 +17,10 @@ journey('addition and completion of single task', ({ page, params }) => {
17
17
 
18
18
  loadAppStep(page, params.url);
19
19
  addTaskStep(page, testText);
20
- assertTaskListSizeStep(page, 1);
20
+ assertTaskListCountStep(page, 1);
21
21
  checkForTaskStep(page, testText);
22
22
  destroyTaskStep(page, testText);
23
- assertTaskListSizeStep(page, 0);
23
+ assertTaskListCountStep(page, 0);
24
24
  });
25
25
 
26
26
  journey('adding and removing multiple tasks', ({ page, params }) => {
@@ -31,13 +31,13 @@ journey('adding and removing multiple tasks', ({ page, params }) => {
31
31
  addTaskStep(page, t);
32
32
  });
33
33
 
34
- assertTaskListSizeStep(page, 3);
34
+ assertTaskListCountStep(page, 3);
35
35
 
36
36
  // remove the middle task and check that it worked
37
37
  destroyTaskStep(page, testTasks[1]);
38
- assertTaskListSizeStep(page, 2);
38
+ assertTaskListCountStep(page, 2);
39
39
 
40
40
  // add a new task and check it exists
41
41
  addTaskStep(page, 'Task 4');
42
- assertTaskListSizeStep(page, 3);
42
+ assertTaskListCountStep(page, 3);
43
43
  });
@@ -12,7 +12,7 @@ journey('My Example Journey', ({ page, params }) => {
12
12
  });
13
13
 
14
14
  step('assert title', async () => {
15
- const header = await page.$('h1');
15
+ const header = await page.locator('h1');
16
16
  expect(await header.textContent()).toBe('todos');
17
17
  });
18
18
  });
@@ -13,7 +13,8 @@ export default env => {
13
13
  */
14
14
  monitor: {
15
15
  schedule: '{{schedule}}',
16
- locations: ["'{{locations}}'"],
16
+ locations: ['{{locations}}'],
17
+ privateLocations: ['{{privateLocations}}'],
17
18
  },
18
19
  };
19
20
  if (env !== 'development') {
@@ -1 +0,0 @@
1
- {"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../src/dsl/locations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWxB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"locations.js","sourceRoot":"","sources":["../../src/dsl/locations.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,sDAAsD;AACzC,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,mBAAmB;IAC1B,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,mBAAmB;IAC9B,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,gBAAgB;IAChC,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,sBAAsB;IAC9B,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,YAAY;CACtB,CAAC"}