doc-detective-common 3.4.1-dev.4 → 3.4.1-dev.5

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.
@@ -2774,6 +2774,72 @@
2774
2774
  "transform": [
2775
2775
  "trim"
2776
2776
  ]
2777
+ },
2778
+ "timeout": {
2779
+ "type": "integer",
2780
+ "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
2781
+ "default": 30000,
2782
+ "minimum": 0
2783
+ },
2784
+ "waitUntil": {
2785
+ "type": "object",
2786
+ "description": "Configuration for waiting conditions after navigation.",
2787
+ "additionalProperties": false,
2788
+ "properties": {
2789
+ "networkIdleTime": {
2790
+ "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
2791
+ "anyOf": [
2792
+ {
2793
+ "type": "integer",
2794
+ "minimum": 0
2795
+ },
2796
+ {
2797
+ "type": "null"
2798
+ }
2799
+ ],
2800
+ "default": 500
2801
+ },
2802
+ "domIdleTime": {
2803
+ "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
2804
+ "anyOf": [
2805
+ {
2806
+ "type": "integer",
2807
+ "minimum": 0
2808
+ },
2809
+ {
2810
+ "type": "null"
2811
+ }
2812
+ ],
2813
+ "default": 1000
2814
+ },
2815
+ "find": {
2816
+ "type": "object",
2817
+ "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
2818
+ "additionalProperties": false,
2819
+ "anyOf": [
2820
+ {
2821
+ "required": [
2822
+ "selector"
2823
+ ]
2824
+ },
2825
+ {
2826
+ "required": [
2827
+ "elementText"
2828
+ ]
2829
+ }
2830
+ ],
2831
+ "properties": {
2832
+ "selector": {
2833
+ "type": "string",
2834
+ "description": "CSS selector for the element to wait for."
2835
+ },
2836
+ "elementText": {
2837
+ "type": "string",
2838
+ "description": "Text content the element must contain."
2839
+ }
2840
+ }
2841
+ }
2842
+ }
2777
2843
  }
2778
2844
  },
2779
2845
  "title": "Go to URL (detailed)"
@@ -2812,6 +2878,72 @@
2812
2878
  "transform": [
2813
2879
  "trim"
2814
2880
  ]
2881
+ },
2882
+ "timeout": {
2883
+ "type": "integer",
2884
+ "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
2885
+ "default": 30000,
2886
+ "minimum": 0
2887
+ },
2888
+ "waitUntil": {
2889
+ "type": "object",
2890
+ "description": "Configuration for waiting conditions after navigation.",
2891
+ "additionalProperties": false,
2892
+ "properties": {
2893
+ "networkIdleTime": {
2894
+ "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
2895
+ "anyOf": [
2896
+ {
2897
+ "type": "integer",
2898
+ "minimum": 0
2899
+ },
2900
+ {
2901
+ "type": "null"
2902
+ }
2903
+ ],
2904
+ "default": 500
2905
+ },
2906
+ "domIdleTime": {
2907
+ "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
2908
+ "anyOf": [
2909
+ {
2910
+ "type": "integer",
2911
+ "minimum": 0
2912
+ },
2913
+ {
2914
+ "type": "null"
2915
+ }
2916
+ ],
2917
+ "default": 1000
2918
+ },
2919
+ "find": {
2920
+ "type": "object",
2921
+ "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
2922
+ "additionalProperties": false,
2923
+ "anyOf": [
2924
+ {
2925
+ "required": [
2926
+ "selector"
2927
+ ]
2928
+ },
2929
+ {
2930
+ "required": [
2931
+ "elementText"
2932
+ ]
2933
+ }
2934
+ ],
2935
+ "properties": {
2936
+ "selector": {
2937
+ "type": "string",
2938
+ "description": "CSS selector for the element to wait for."
2939
+ },
2940
+ "elementText": {
2941
+ "type": "string",
2942
+ "description": "Text content the element must contain."
2943
+ }
2944
+ }
2945
+ }
2946
+ }
2815
2947
  }
2816
2948
  },
2817
2949
  "title": "Go to URL (detailed)"
@@ -2826,7 +2958,41 @@
2826
2958
  },
2827
2959
  {
2828
2960
  "url": "/search",
2829
- "origin": "www.google.com"
2961
+ "origin": "https://www.google.com"
2962
+ },
2963
+ {
2964
+ "url": "https://www.example.com",
2965
+ "waitUntil": {
2966
+ "networkIdleTime": 500
2967
+ }
2968
+ },
2969
+ {
2970
+ "url": "https://www.example.com/dashboard",
2971
+ "waitUntil": {
2972
+ "find": {
2973
+ "selector": "[data-testid='dashboard-loaded']"
2974
+ }
2975
+ }
2976
+ },
2977
+ {
2978
+ "url": "https://www.example.com/app",
2979
+ "timeout": 60000,
2980
+ "waitUntil": {
2981
+ "networkIdleTime": 500,
2982
+ "domIdleTime": 1000,
2983
+ "find": {
2984
+ "selector": ".main-content",
2985
+ "elementText": "Dashboard"
2986
+ }
2987
+ }
2988
+ },
2989
+ {
2990
+ "url": "https://www.example.com/status",
2991
+ "waitUntil": {
2992
+ "find": {
2993
+ "elementText": "System operational"
2994
+ }
2995
+ }
2830
2996
  }
2831
2997
  ]
2832
2998
  }
@@ -9651,6 +9817,72 @@
9651
9817
  "transform": [
9652
9818
  "trim"
9653
9819
  ]
9820
+ },
9821
+ "timeout": {
9822
+ "type": "integer",
9823
+ "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
9824
+ "default": 30000,
9825
+ "minimum": 0
9826
+ },
9827
+ "waitUntil": {
9828
+ "type": "object",
9829
+ "description": "Configuration for waiting conditions after navigation.",
9830
+ "additionalProperties": false,
9831
+ "properties": {
9832
+ "networkIdleTime": {
9833
+ "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
9834
+ "anyOf": [
9835
+ {
9836
+ "type": "integer",
9837
+ "minimum": 0
9838
+ },
9839
+ {
9840
+ "type": "null"
9841
+ }
9842
+ ],
9843
+ "default": 500
9844
+ },
9845
+ "domIdleTime": {
9846
+ "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
9847
+ "anyOf": [
9848
+ {
9849
+ "type": "integer",
9850
+ "minimum": 0
9851
+ },
9852
+ {
9853
+ "type": "null"
9854
+ }
9855
+ ],
9856
+ "default": 1000
9857
+ },
9858
+ "find": {
9859
+ "type": "object",
9860
+ "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
9861
+ "additionalProperties": false,
9862
+ "anyOf": [
9863
+ {
9864
+ "required": [
9865
+ "selector"
9866
+ ]
9867
+ },
9868
+ {
9869
+ "required": [
9870
+ "elementText"
9871
+ ]
9872
+ }
9873
+ ],
9874
+ "properties": {
9875
+ "selector": {
9876
+ "type": "string",
9877
+ "description": "CSS selector for the element to wait for."
9878
+ },
9879
+ "elementText": {
9880
+ "type": "string",
9881
+ "description": "Text content the element must contain."
9882
+ }
9883
+ }
9884
+ }
9885
+ }
9654
9886
  }
9655
9887
  },
9656
9888
  "title": "Go to URL (detailed)"
@@ -9689,6 +9921,72 @@
9689
9921
  "transform": [
9690
9922
  "trim"
9691
9923
  ]
9924
+ },
9925
+ "timeout": {
9926
+ "type": "integer",
9927
+ "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
9928
+ "default": 30000,
9929
+ "minimum": 0
9930
+ },
9931
+ "waitUntil": {
9932
+ "type": "object",
9933
+ "description": "Configuration for waiting conditions after navigation.",
9934
+ "additionalProperties": false,
9935
+ "properties": {
9936
+ "networkIdleTime": {
9937
+ "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
9938
+ "anyOf": [
9939
+ {
9940
+ "type": "integer",
9941
+ "minimum": 0
9942
+ },
9943
+ {
9944
+ "type": "null"
9945
+ }
9946
+ ],
9947
+ "default": 500
9948
+ },
9949
+ "domIdleTime": {
9950
+ "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
9951
+ "anyOf": [
9952
+ {
9953
+ "type": "integer",
9954
+ "minimum": 0
9955
+ },
9956
+ {
9957
+ "type": "null"
9958
+ }
9959
+ ],
9960
+ "default": 1000
9961
+ },
9962
+ "find": {
9963
+ "type": "object",
9964
+ "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
9965
+ "additionalProperties": false,
9966
+ "anyOf": [
9967
+ {
9968
+ "required": [
9969
+ "selector"
9970
+ ]
9971
+ },
9972
+ {
9973
+ "required": [
9974
+ "elementText"
9975
+ ]
9976
+ }
9977
+ ],
9978
+ "properties": {
9979
+ "selector": {
9980
+ "type": "string",
9981
+ "description": "CSS selector for the element to wait for."
9982
+ },
9983
+ "elementText": {
9984
+ "type": "string",
9985
+ "description": "Text content the element must contain."
9986
+ }
9987
+ }
9988
+ }
9989
+ }
9692
9990
  }
9693
9991
  },
9694
9992
  "title": "Go to URL (detailed)"
@@ -9703,7 +10001,41 @@
9703
10001
  },
9704
10002
  {
9705
10003
  "url": "/search",
9706
- "origin": "www.google.com"
10004
+ "origin": "https://www.google.com"
10005
+ },
10006
+ {
10007
+ "url": "https://www.example.com",
10008
+ "waitUntil": {
10009
+ "networkIdleTime": 500
10010
+ }
10011
+ },
10012
+ {
10013
+ "url": "https://www.example.com/dashboard",
10014
+ "waitUntil": {
10015
+ "find": {
10016
+ "selector": "[data-testid='dashboard-loaded']"
10017
+ }
10018
+ }
10019
+ },
10020
+ {
10021
+ "url": "https://www.example.com/app",
10022
+ "timeout": 60000,
10023
+ "waitUntil": {
10024
+ "networkIdleTime": 500,
10025
+ "domIdleTime": 1000,
10026
+ "find": {
10027
+ "selector": ".main-content",
10028
+ "elementText": "Dashboard"
10029
+ }
10030
+ }
10031
+ },
10032
+ {
10033
+ "url": "https://www.example.com/status",
10034
+ "waitUntil": {
10035
+ "find": {
10036
+ "elementText": "System operational"
10037
+ }
10038
+ }
9707
10039
  }
9708
10040
  ]
9709
10041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective-common",
3
- "version": "3.4.1-dev.4",
3
+ "version": "3.4.1-dev.5",
4
4
  "description": "Shared components for Doc Detective projects.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "sinon": "^21.0.0"
26
26
  },
27
27
  "dependencies": {
28
- "@apidevtools/json-schema-ref-parser": "^15.1.1",
28
+ "@apidevtools/json-schema-ref-parser": "^15.1.2",
29
29
  "ajv": "^8.17.1",
30
30
  "ajv-errors": "^3.0.0",
31
31
  "ajv-formats": "^3.0.1",