Files
flights_web_raw/node_modules/backstopjs/package.json
T
gnezim 60e2149072 Add comprehensive e2e test suites for Tasks 16-25
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date)
- Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class
- Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting
- Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states
- Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions
- Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation

Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares)
- Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline
- Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements
- Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations
- Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary
- Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds

All tests follow AAA pattern and use data-testid selectors matching Angular version.
Total: 245 tests across 10 feature suites.
2026-04-05 19:25:03 +03:00

122 lines
6.9 KiB
JSON

{
"name": "backstopjs",
"version": "6.3.25",
"description": "BackstopJS: Catch CSS curveballs.",
"homepage": "https://github.com/garris/BackstopJS#readme",
"bin": {
"backstop": "./cli/index.js"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"scripts": {
"lint": "eslint \"compare/*.js\" \"compare/src/**/*.js\" \"core/**/*.js\" \"cli/**/*.js\" \"capture/**/*.js\" \"test/**/*.js\"",
"format": "prettier-eslint --write \"compare/src/**/*.js\"",
"init": "node ./cli/index.js init",
"reference": "node ./cli/index.js reference",
"test": "node ./cli/index.js test",
"approve": "node ./cli/index.js approve",
"openReport": "node ./cli/index.js openReport",
"report": "node ./cli/index.js openReport",
"unit-test": "mocha --reporter spec --recursive \"test/**/*_spec.js\" && npm run -s success-message || npm run -s fail-message",
"precommit": "lint-staged",
"build-compare": "cp ./node_modules/diverged/src/diverged.js ./compare/output/ && cp ./node_modules/diff/dist/diff.js ./compare/output/ && webpack --config ./compare/webpack.config.js && npm run -s lint",
"dev-compare": "webpack-dev-server --config ./compare/webpack.config.js",
"integration-test": "rm -rf integrationTestDir && mkdir integrationTestDir && cd integrationTestDir && node ../cli/index.js init && node ../cli/index.js reference && node ../cli/index.js test && node -e \"require('../')('test')\" && npm --prefix ../ run -s success-message || npm --prefix ../ run -s fail-message",
"smoke-test": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"smoke-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
"smoke-test-docker": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features --docker && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
"smoke-test-playwright-docker": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw --docker && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
"sanity-test": "cd test/configs/ && node ../../cli/index.js test && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"reference-test": "cd test/configs/ && node ../../cli/index.js reference && node ../../cli/index.js test",
"sanity-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=playwright && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"sanity-test-docker": "cd test/configs/ && node ../../cli/index.js test --docker && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"sanity-test-playwright-docker": "cd test/configs/ && node ../../cli/index.js test --config=playwright --docker && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"copy-report-bundle": "mkdir -p test/configs/backstop_data/html_report && cp compare/output/index_bundle.js test/configs/backstop_data/html_report/",
"build-and-copy-report-bundle": "npm run build-compare && npm run copy-report-bundle",
"remote": "cd test/configs/ && node ../../cli/index.js remote",
"stop": "cd test/configs/ && node ../../cli/index.js stop",
"publish-npm": "npm publish",
"build-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:$PV --build-arg BACKSTOPJS_VERSION=$PV docker",
"build-and-load-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --load -t backstopjs/backstopjs:$PV docker",
"publish-docker": "PV=$(node -p -e \"require('./package.json').version\"); echo $PV; docker buildx build --push --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:$PV --build-arg BACKSTOPJS_VERSION=$PV docker; docker buildx build --push --platform linux/amd64,linux/arm64 -t backstopjs/backstopjs:latest --build-arg BACKSTOPJS_VERSION=$PV docker",
"build-and-publish": "npm run publish-npm && npm run publish-docker",
"init-docker-builder": "docker buildx create --name backstopjsbuilder --use --bootstrap",
"burn-docker-builder": "sh ./docker/burn-docker-builder.sh",
"success-message": "printf \"\\n\\e[32m✓ SUCCESS!\\e[0m BackstopJS internal testing passed.\\n\"",
"caution-message": "printf \"\\n\\e[33m⚠ Notice.\\e[0m BackstopJS internal testing exited with a non-success status. This is expected when BackstopJS finds differences.\\n\"",
"fail-message": "printf \"\\n\\e[31m✖ FAIL!\\e[0m BackstopJS internal testing failed. See logs for details.\\n\""
},
"lint-staged": {
"compare/src/**/*.js": [
"node_modules/.bin/prettier --single-quote --write",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://github.com/garris/backstopjs.git"
},
"author": "https://github.com/garris/BackstopJS/graphs/contributors",
"license": "MIT",
"main": "core/runner.js",
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"assert": "^2.1.0",
"babel-loader": "^9.1.3",
"backstop-twentytwenty": "^1.1.0",
"eslint": "^8.56.0",
"eslint-config-semistandard": "17.0.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-standard": "^5.0.0",
"file-loader": "^6.2.0",
"lint-staged": "^15.2.0",
"mocha": "^10.2.0",
"mockery": "^2.1.0",
"prettier": "^3.1.1",
"prettier-eslint-cli": "^8.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-modal": "^3.16.1",
"react-redux": "^9.0.4",
"react-sticky": "^6.0.3",
"react-toggle-button": "^2.2.0",
"react-visibility-sensor": "^5.1.1",
"redux": "^5.0.0",
"sinon": "^17.0.1",
"styled-components": "^6.1.2",
"url-loader": "^4.1.1",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
"@mirzazeyrek/node-resemble-js": "^1.2.1",
"chalk": "^4.1.2",
"diverged": "^0.1.3",
"fs-extra": "^11.2.0",
"jump.js": "^1.0.2",
"junit-report-builder": "^3.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.8",
"object-hash": "3.0.0",
"opn": "^6.0.0",
"os": "^0.1.2",
"p-map": "^4.0.0",
"path": "^0.12.7",
"playwright": "^1.40.1",
"portfinder": "^1.0.32",
"puppeteer": "^22.1.0",
"super-simple-web-server": "^1.1.4",
"temp": "^0.9.4"
}
}