@grafana/plugin-e2e 0.8.2 → 0.9.0-canary.655.ce61438.0
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/dist/api.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/matchers/index.d.ts +2 -2
- package/dist/matchers/toBeOK.d.ts +2 -2
- package/dist/matchers/toBeOK.js +6 -19
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -129,10 +129,10 @@ export type PluginFixture = {
|
|
|
129
129
|
};
|
|
130
130
|
export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & PluginFixture, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions & PluginOptions>;
|
|
131
131
|
export declare const expect: import("@playwright/test").Expect<{
|
|
132
|
-
toBeOK: (
|
|
133
|
-
message: () => string;
|
|
132
|
+
toBeOK: (response: import("@playwright/test").Response) => Promise<{
|
|
134
133
|
pass: boolean;
|
|
135
134
|
actual: number;
|
|
135
|
+
message: () => string;
|
|
136
136
|
}>;
|
|
137
137
|
toHavePanelError: (panelError: import("./types").PanelError, options?: {
|
|
138
138
|
timeout?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ declare global {
|
|
|
12
12
|
[r]: R;
|
|
13
13
|
[t]: T;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Asserts that a Playwright response was successful (status in the range 200-299).
|
|
16
16
|
*/
|
|
17
|
-
toBeOK(this: Matchers<unknown,
|
|
17
|
+
toBeOK(this: Matchers<unknown, Response>): R;
|
|
18
18
|
/**
|
|
19
19
|
* Asserts that preview text elements are displayed on the Variable Edit Page. You should make sure any variable queries are completed before calling this matcher.
|
|
20
20
|
*/
|
package/dist/matchers/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
toBeOK: (
|
|
3
|
-
message: () => string;
|
|
2
|
+
toBeOK: (response: import("playwright-core").Response) => Promise<{
|
|
4
3
|
pass: boolean;
|
|
5
4
|
actual: number;
|
|
5
|
+
message: () => string;
|
|
6
6
|
}>;
|
|
7
7
|
toHavePanelError: (panelError: import("../types").PanelError, options?: {
|
|
8
8
|
timeout?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Response } from '@playwright/test';
|
|
2
|
-
declare const toBeOK: (
|
|
3
|
-
message: () => string;
|
|
2
|
+
declare const toBeOK: (response: Response) => Promise<{
|
|
4
3
|
pass: boolean;
|
|
5
4
|
actual: number;
|
|
5
|
+
message: () => string;
|
|
6
6
|
}>;
|
|
7
7
|
export default toBeOK;
|
package/dist/matchers/toBeOK.js
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("./utils");
|
|
4
|
-
const toBeOK = async (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
message: () => (0, utils_1.getMessage)(message, response.status().toString()),
|
|
12
|
-
pass: response.ok(),
|
|
13
|
-
actual: response.status(),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
catch (err) {
|
|
17
|
-
return {
|
|
18
|
-
message: () => (0, utils_1.getMessage)(message, err instanceof Error ? err.toString() : 'Unknown error'),
|
|
19
|
-
pass,
|
|
20
|
-
actual,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
4
|
+
const toBeOK = async (response) => {
|
|
5
|
+
return {
|
|
6
|
+
pass: response.ok(),
|
|
7
|
+
actual: response.status(),
|
|
8
|
+
message: () => (0, utils_1.getMessage)('Response status code is within 200..299 range.', response.status().toString()),
|
|
9
|
+
};
|
|
23
10
|
};
|
|
24
11
|
exports.default = toBeOK;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-canary.655.ce61438.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"semver": "^7.5.4",
|
|
46
46
|
"uuid": "^9.0.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ce6143872666b5000af1d582e41b1b940e9ca253"
|
|
49
49
|
}
|