spryker/cypress-tests
Composer 安装命令:
composer require spryker/cypress-tests
包简介
This repository is dedicated to housing an extensive collection of UI end-to-end tests, meticulously crafted using Cypress for Spryker applications. These tests are designed to thoroughly evaluate the user interface, ensuring that all interactions and visual elements function as intended in real-wor
README 文档
README
This repository is dedicated to housing an extensive collection of UI end-to-end tests, meticulously crafted using Cypress for Spryker applications. These tests are designed to thoroughly evaluate the user interface, ensuring that all interactions and visual elements function as intended in real-world scenarios. By leveraging Cypress's advanced browser automation capabilities, this suite provides an efficient and effective means of validating the user experience, confirming the seamless operation and aesthetic integrity of Spryker's front-end components. Our commitment to rigorous UI testing helps maintain the high standard of quality and reliability that Spryker users expect.
Setup
To get started with these tests, follow these setup steps:
- Install Dependencies:
- Install all necessary dependencies required for running the tests.
npm install
- Environment Configuration:
- Set up your environment variables for Cypress.
- Copy the
.env.examplefile to a new file named.env. - Open the
.envfile and fill in the necessary environment variables. - These variables are crucial for Cypress to connect with your Spryker application and perform tests effectively.
- Copy the
Running Tests
To run the Cypress tests, use the following command:
npm run cy:open
This command opens the Cypress Test Runner, a powerful interface that allows you to see tests running in real time.
Note: to run tests against different demoshops automatically, use Multi-Store-Runner script.
Development workflow in the shop (suite-nonsplit or demoshop)
To use a different branch, modify the project composer.json
"require-dev": { "spryker/cypress-tests": "dev-YOUR_BRANCH_NAME" }
and run composer update spryker/cypress-tests, then commit composer.json and composer.lock files.
Troubleshooting
URI malformed
The following error originated from your test code, not from Cypress. > URI malformed When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. Cypress could not associate this error to any specific test. We dynamically generated a new test to display this failure. When you encounter a "URI malformed" error in Cypress, it NOT always indicates that there is an issue with the URL used in your tests.
To resolve this error, you can try the following steps:
- Ensure "Node.js" version is 22.16.0 or higher.
- Ensue "npm" version is 11.6.0 or higher.
- If you changed version of Node or npm, delete the
node_modulesfolder and reinstall dependencies. (rm -rf node_modules/ && npm install) - Clear Cypress App Data following this guide.
Other issues
If you encounter other issues not described here, refer to the Troubleshooting for common problems and solutions.
Test Tagging
When adding a new test or extending the coverage of an existing test - add the tag for the covered feature. The tag should be named the same as the corresponding feature in the Release App. E.g. if you create a new test that touches Marketplace Agent Assist feature, you should add tags marketplace-agent-assist and marketplace-merchantportal-core. Please see the existing tests for the tag syntax.
spryker/cypress-tests 适用场景与选型建议
spryker/cypress-tests 是一款 基于 TypeScript 开发的 Composer 扩展包,目前已累计 15.22k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 spryker/cypress-tests 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 spryker/cypress-tests 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 28
- 依赖项目数: 9
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04