Files
FOSSBilling/cypress.config.js
T
474fa6b24c Introduce E2E tests using Cypress (#3563)
* Introduce E2E tests using Cypress

* Removed unrelated submodule

* Add Cypress Cloud project ID

* Save Cypress runs to Cloud

* Pass commit information to the container

* Added admin smoke tests

* Redo Cypress workflow

* Increase shm size

* Run Cypress using Electron

* Add dedicated Docker network alias

* Fixed hostname

* Validate sessions via browser navigation

* Disable session fingerprinting during Cypress tests

* Adjust smoke test paths

* Move Cypress usage to npx

* Remove redundant assertions

* Added basic tests for the client area

* Make spellcheck happy

* Fix test cases

* Added client support lifecycle tests

* Separate tests by directories

* Account for the max subject length

* Fix an actual FOSSBilling error

* Getting around the subject character limit

* Restored the long subject

* Timing issues with Bootstrap modals

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Only upload artifacts when recording is disabled

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-24 00:35:52 +03:00

21 lines
634 B
JavaScript

module.exports = {
projectId: 'zap1kb',
e2e: {
baseUrl: process.env.CYPRESS_BASE_URL || 'http://localhost',
specPattern: 'tests/e2e/cypress/e2e/**/*.cy.js',
supportFile: 'tests/e2e/cypress/support/e2e.js',
},
defaultCommandTimeout: 10000,
viewportWidth: 1280,
viewportHeight: 720,
env: {
adminEmail: process.env.CYPRESS_ADMIN_EMAIL || '',
adminPassword: process.env.CYPRESS_ADMIN_PASSWORD || '',
},
video: false,
screenshotOnRunFailure: true,
screenshotsFolder: 'tests/e2e/cypress/screenshots',
videosFolder: 'tests/e2e/cypress/videos',
downloadsFolder: 'tests/e2e/cypress/downloads',
};