![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@processmaker/cypress-utils
Advanced tools
This package provides a collection of utilities designed to enhance and simplify the development of tests for ProcessMaker with Cypress, an end-to-end testing framework. These utilities aim to make your ProcessMaker automated testing workflow more efficient and manageable.
To start using the cypress-utils in your project, you'll need to add it as a dependency. Assuming you have Node.js and npm installed, you can add the package by running:
npm install --save @processmaker/cypress-utils
After installing, you can import and use the utilities in your Cypress tests.
First, add some aliases in your cypress.config.js file:
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
const options = {
webpackOptions: {
resolve: {
alias: {
"@helpers": "@processmaker/cypress-utils/helpers",
"@pages": "@processmaker/cypress-utils/pages",
"@selectors": "@processmaker/cypress-utils/selectors",
"@support": "@processmaker/cypress-utils/support"
},
},
},
};
},
on("file:preprocessor", webpack(options));
},
});
Then, import and use the utilities in your tests:
import { Login } from "@pages/login";
const login = new Login();
describe("Example Test", () => {
beforeEach(() => {
login.navigateToUrl();
login.login();
});
it("Loads the requests page", () => {
cy.visit("/requests");
cy.url().should("include", "/requests");
});
});
FAQs
ProcessMaker Cypress Testing Utilities
The npm package @processmaker/cypress-utils receives a total of 225 weekly downloads. As such, @processmaker/cypress-utils popularity was classified as not popular.
We found that @processmaker/cypress-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.