Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
bacon-automation-testing
Advanced tools
This is a testing project for **ba:con** application.
This is a testing project for ba:con application.
The project is build on Playwright framework.
It provides a set of automated tests that can be run to ensure the functionality of the application remains intact after changes have been made. This testing project is a package of the ba:con monorepo and should be run on the connection with the main app.
The project is developing on TypeScript, has own architecture and tasks in the application development and delivery life cycle.
Playwright is a Node.js library for automating the Chromium, Firefox, WebKit browsers, and Electron apps with a single API. It enables to write reliable, fast, and maintainable tests for the applications using JavaScript or TypeScript.
Inside the pw-e2e-autotests package folder are collected all necessary files, components and elements of the testing framework and testing flows spec files.
bs-autotests/
├── .github/
│ └── workflows/
│ └── playwright.yml <!-- GitHub Actions template -->
├── src/
│ ├── pageObjects/ <!-- PageObjects and components files -->
│ ├── components/
│ └── page files
│ └── tests/ <!-- folders with the code for different levels of testing included to the project as sub-projects -->
│ ├── api/
│ ├── commonActions/ <!-- actions and fixtures that can be used in different parts of the project -->
│ ├── e2e/
│ ├── functional/
│ └── helpers/ <!-- helpers -->
├── .eslintrc.json <!-- eslint configuration and rules -->
├── package.json <!-- nodejs configuration file -->
├── playwright.config.ts <!-- project base configuration -->
├── README
└── tsconfig.json
This project is part of a monorepo. To use this project in the context of the larger repository, please follow these steps:
pnpm install
to install all dependencies for all packages (follow the installation instructions for the root project)pnpm build:all
and pnpm start:browser
command for build and run the application on the localhost:3000
pnpm t
to run all testing scripts of the packageYou could run the project in a standalone mode. In this mode you can not run the project in local environment, cause the main application is not build and run locally.
pnpm install
to install all dependencies for all packageENVR=qa pnpm test:ui-e2e
to run the testing projectThe testing project includes some sub-projects that can be run by the executing the scripts.
Available sub-projects: test:ui-e2e
The all tests could be run in different environments by call the environment as the process.env
variable ENVR
.
By changing the environment you change the baseUrl
for running the tests
Available environments:
local
- run the tests on http://localhost:3000
qa
- run the tests on https://qa.bsn.cloud/
By default local
is selected.
For example, for running tests on the local environment, execute the command pnpm test:ui-e2e
.
For running the tests on the qa environment, execute the command ENVR=qa pnpm test:ui-e2e
For running the test in different modes, could be used the keys.
--headed
run tests in headed browsers. Useful for debugging.
--debug
run tests with Playwright Inspector.
--grep <grep>
only run tests matching this regular expression.
--list
List all the tests, but do not run them
--workers <number>
the maximum number of concurrent worker processes that run in parallel.
For example when you need to start the tests in headed mode in qa environment execute
ENVR=qa pnpm test:ui-e2e --headed
In case you need to be sure the local host is run you can run additional script pretest
that wait for the localhost
pnpm pretest && pnpm test:ui-e2e
After each execution the list reporter is shown on the terminal.
But If you need to compile and run more deep and full html reporter,
after tests execution run the command
pnpm report
to open the reporter in the browser.
Under construction
FAQs
This is a testing project for **ba:con** application.
The npm package bacon-automation-testing receives a total of 0 weekly downloads. As such, bacon-automation-testing popularity was classified as not popular.
We found that bacon-automation-testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.