@grafana/plugin-e2e 3.3.1 → 3.3.2
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.
|
@@ -5,7 +5,11 @@ const getBooleanOpenFeatureFlag = async ({ page, selectors, namespace }, use) =>
|
|
|
5
5
|
try {
|
|
6
6
|
const url = selectors.apis.OpenFeature.ofrepSinglePath(namespace, flagKey);
|
|
7
7
|
const result = await page.evaluate(async (flagUrl) => {
|
|
8
|
-
const response = await fetch(flagUrl
|
|
8
|
+
const response = await fetch(flagUrl, {
|
|
9
|
+
method: "POST",
|
|
10
|
+
headers: { "Content-Type": "application/json" },
|
|
11
|
+
body: JSON.stringify({ context: {} })
|
|
12
|
+
});
|
|
9
13
|
if (!response.ok) {
|
|
10
14
|
return {
|
|
11
15
|
error: true,
|
|
@@ -83,10 +83,6 @@ async function handleSingleFlagRoute(route, flags, latency) {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
async function setupOpenFeatureRoutes(page, openFeature, latency, selectors) {
|
|
86
|
-
console.log("@grafana/plugin-e2e: setting up OpenFeature OFREP interception", {
|
|
87
|
-
openFeature,
|
|
88
|
-
latency
|
|
89
|
-
});
|
|
90
86
|
await page.route(selectors.apis.OpenFeature.ofrepBulkPattern, async (route) => {
|
|
91
87
|
await handleBulkEvaluationRoute(route, openFeature, latency);
|
|
92
88
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"uuid": "^13.0.0",
|
|
48
48
|
"yaml": "^2.3.4"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "eb61fc98de779b2b080355a32b0e3ab1e01a798c"
|
|
51
51
|
}
|