@vostride/agent-qa-core 0.1.11 → 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 +31 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +30 -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";
|
|
@@ -8948,6 +8952,7 @@ async function runSuite(suite, testEntries, config) {
|
|
|
8948
8952
|
secretStore: config.secretStore,
|
|
8949
8953
|
secretRedactor: config.secretRedactor,
|
|
8950
8954
|
accessibility: config.accessibility,
|
|
8955
|
+
accessibilityCheck: config.accessibilityCheck,
|
|
8951
8956
|
logCapture: config.logCapture,
|
|
8952
8957
|
screenshotSize: config.screenshotSize,
|
|
8953
8958
|
effectiveResolution: config.effectiveResolution,
|
|
@@ -9016,7 +9021,8 @@ async function runSuite(suite, testEntries, config) {
|
|
|
9016
9021
|
logger: config.logger,
|
|
9017
9022
|
secretStore: config.secretStore,
|
|
9018
9023
|
secretRedactor: config.secretRedactor,
|
|
9019
|
-
accessibility: config.accessibility
|
|
9024
|
+
accessibility: config.accessibility,
|
|
9025
|
+
accessibilityCheck: config.accessibilityCheck
|
|
9020
9026
|
}, filePath);
|
|
9021
9027
|
if (config.circuitBreaker) {
|
|
9022
9028
|
config.circuitBreaker.record({ withMemory: false, passed: ablationResult.status === "passed" });
|
|
@@ -10318,7 +10324,20 @@ var MockAnalyticsTransport = class {
|
|
|
10318
10324
|
};
|
|
10319
10325
|
|
|
10320
10326
|
// src/version.ts
|
|
10321
|
-
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();
|
|
10322
10341
|
function getAgentQaVersion() {
|
|
10323
10342
|
return AGENT_QA_VERSION;
|
|
10324
10343
|
}
|
|
@@ -10603,6 +10622,7 @@ var AnalyticsEventPropertiesSchemaByName = {
|
|
|
10603
10622
|
function buildAnalyticsEvent(input) {
|
|
10604
10623
|
const name = AnalyticsEventNameSchema.parse(input.name);
|
|
10605
10624
|
const properties = AnalyticsEventPropertiesSchemaByName[name].parse({
|
|
10625
|
+
agent_qa_version: getAgentQaVersion(),
|
|
10606
10626
|
...input.properties ?? {},
|
|
10607
10627
|
$process_person_profile: false
|
|
10608
10628
|
});
|