@vostride/agent-qa-core 0.1.10 → 0.1.12
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/index.cjs +33 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +32 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5597,14 +5597,18 @@ ${errorLines.join("\n")}`;
|
|
|
5597
5597
|
const shouldRun = runAfter === "every-step" || runAfter === "test-end" && stepIndex === test.steps.length - 1;
|
|
5598
5598
|
if (shouldRun) {
|
|
5599
5599
|
try {
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5600
|
+
let runAccessibilityCheck = config.accessibilityCheck;
|
|
5601
|
+
if (!runAccessibilityCheck) {
|
|
5602
|
+
const webMod = await withAbort(
|
|
5603
|
+
import(accessibilityWebModuleName),
|
|
5604
|
+
stepAbortController.signal
|
|
5605
|
+
);
|
|
5606
|
+
runAccessibilityCheck = webMod.runAccessibilityCheck;
|
|
5607
|
+
}
|
|
5604
5608
|
const page = "getPage" in config.adapter ? config.adapter.getPage() : void 0;
|
|
5605
5609
|
if (page) {
|
|
5606
5610
|
const violations = await withAbort(
|
|
5607
|
-
|
|
5611
|
+
runAccessibilityCheck(page, {
|
|
5608
5612
|
standard: config.accessibility.standard,
|
|
5609
5613
|
disableRules: config.accessibility.disableRules,
|
|
5610
5614
|
exclude: config.accessibility.exclude
|
|
@@ -7485,8 +7489,8 @@ function resolveModuleSpecifier(declaration, baseDir) {
|
|
|
7485
7489
|
const resolveImport = import_meta.resolve;
|
|
7486
7490
|
return resolveImport(packageName, parentUrl);
|
|
7487
7491
|
} catch {
|
|
7488
|
-
const
|
|
7489
|
-
return (0, import_node_url.pathToFileURL)(
|
|
7492
|
+
const require4 = (0, import_node_module.createRequire)((0, import_node_path10.resolve)(baseDir, "agent-qa.config.yaml"));
|
|
7493
|
+
return (0, import_node_url.pathToFileURL)(require4.resolve(packageName)).href;
|
|
7490
7494
|
}
|
|
7491
7495
|
}
|
|
7492
7496
|
const pluginPath = pathDeclarationValue(declaration);
|
|
@@ -7833,8 +7837,8 @@ var BROWSER_MAP = {
|
|
|
7833
7837
|
};
|
|
7834
7838
|
function detectPlaywrightVersion() {
|
|
7835
7839
|
try {
|
|
7836
|
-
const
|
|
7837
|
-
const pkg =
|
|
7840
|
+
const require4 = (0, import_node_module2.createRequire)(import_meta2.url);
|
|
7841
|
+
const pkg = require4("playwright-core/package.json");
|
|
7838
7842
|
return pkg.version;
|
|
7839
7843
|
} catch {
|
|
7840
7844
|
return "1.59.1";
|
|
@@ -8947,6 +8951,8 @@ async function runSuite(suite, testEntries, config) {
|
|
|
8947
8951
|
inlineHookSandboxOptions: config.sandboxOptions,
|
|
8948
8952
|
secretStore: config.secretStore,
|
|
8949
8953
|
secretRedactor: config.secretRedactor,
|
|
8954
|
+
accessibility: config.accessibility,
|
|
8955
|
+
accessibilityCheck: config.accessibilityCheck,
|
|
8950
8956
|
logCapture: config.logCapture,
|
|
8951
8957
|
screenshotSize: config.screenshotSize,
|
|
8952
8958
|
effectiveResolution: config.effectiveResolution,
|
|
@@ -9014,7 +9020,9 @@ async function runSuite(suite, testEntries, config) {
|
|
|
9014
9020
|
timeouts: config.timeouts,
|
|
9015
9021
|
logger: config.logger,
|
|
9016
9022
|
secretStore: config.secretStore,
|
|
9017
|
-
secretRedactor: config.secretRedactor
|
|
9023
|
+
secretRedactor: config.secretRedactor,
|
|
9024
|
+
accessibility: config.accessibility,
|
|
9025
|
+
accessibilityCheck: config.accessibilityCheck
|
|
9018
9026
|
}, filePath);
|
|
9019
9027
|
if (config.circuitBreaker) {
|
|
9020
9028
|
config.circuitBreaker.record({ withMemory: false, passed: ablationResult.status === "passed" });
|
|
@@ -10316,7 +10324,20 @@ var MockAnalyticsTransport = class {
|
|
|
10316
10324
|
};
|
|
10317
10325
|
|
|
10318
10326
|
// src/version.ts
|
|
10319
|
-
var
|
|
10327
|
+
var import_node_module4 = require("module");
|
|
10328
|
+
var import_meta4 = {};
|
|
10329
|
+
var require3 = (0, import_node_module4.createRequire)(import_meta4.url);
|
|
10330
|
+
function readPackageVersion() {
|
|
10331
|
+
try {
|
|
10332
|
+
const manifest = require3("../package.json");
|
|
10333
|
+
if (typeof manifest.version === "string" && manifest.version.trim()) {
|
|
10334
|
+
return manifest.version.trim();
|
|
10335
|
+
}
|
|
10336
|
+
} catch {
|
|
10337
|
+
}
|
|
10338
|
+
return "0.0.0";
|
|
10339
|
+
}
|
|
10340
|
+
var AGENT_QA_VERSION = readPackageVersion();
|
|
10320
10341
|
function getAgentQaVersion() {
|
|
10321
10342
|
return AGENT_QA_VERSION;
|
|
10322
10343
|
}
|
|
@@ -10601,6 +10622,7 @@ var AnalyticsEventPropertiesSchemaByName = {
|
|
|
10601
10622
|
function buildAnalyticsEvent(input) {
|
|
10602
10623
|
const name = AnalyticsEventNameSchema.parse(input.name);
|
|
10603
10624
|
const properties = AnalyticsEventPropertiesSchemaByName[name].parse({
|
|
10625
|
+
agent_qa_version: getAgentQaVersion(),
|
|
10604
10626
|
...input.properties ?? {},
|
|
10605
10627
|
$process_person_profile: false
|
|
10606
10628
|
});
|