From f616fefd587d0df3dad1069d88ab29a175db27c8 Mon Sep 17 00:00:00 2001 From: dmitrykurmanov Date: Mon, 15 Jan 2024 12:07:16 +0400 Subject: [PATCH] remove test.only for a11y tests and added lint --- accessibilityTests/selectbase.ts | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/accessibilityTests/selectbase.ts b/accessibilityTests/selectbase.ts index 7ee1776342..de37bec857 100644 --- a/accessibilityTests/selectbase.ts +++ b/accessibilityTests/selectbase.ts @@ -8,7 +8,6 @@ axeOptions["aria-allowed-role"] = { enabled: false }; - frameworks.forEach((framework) => { fixture`${framework} a11y:${title}`.page`${url}${framework}`.beforeEach( async (t) => { @@ -126,7 +125,7 @@ frameworks.forEach((framework) => { const { error, violations } = await axeCheck(t, axeContext, axeOptions); await t.expect(violations.length === 0).ok(createReport(violations)); }); - test.only("axe check imagepicker", async (t) => { + test("axe check imagepicker", async (t) => { await initSurvey(framework, { "elements": [ { diff --git a/package.json b/package.json index d81056cf48..99fe888d7a 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "dev": "concurrently \"http-server -p 7766 --silent\" \"npm run watch:core:dev\" \"npm run watch:core:prod\" \"npm run watch:ko:ui:dev\" \"npm run watch:react:ui:dev\" \"npm run watch:ko:ui:prod\" \"npm run watch:react:ui:prod\"", "madge": "madge --circular --extensions ts ./src/", "pre-push-check": "npm run lint && npm run testsingle", - "lint": "eslint ./src --quiet && eslint ./testCafe --quiet && eslint ./tests --quiet && eslint ./visualRegressionTests --quiet", + "lint": "eslint ./src --quiet && eslint ./testCafe --quiet && eslint ./tests --quiet && eslint ./visualRegressionTests --quiet && eslint ./accessibilityTests --quiet", "testsingle": "karma start ./build-scripts/karma.conf.js --single-run", "test:knockout": "karma start ./build-scripts/survey-knockout/karma.conf.knockout.js", "test:react": "karma start ./build-scripts/survey-react/karma.conf.react.js",