8000 Fix clickToolbarButton Test by muhme · Pull Request #43 · joomla-projects/joomla-cypress · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix clickToolbarButton Test #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025
Merged

Conversation

muhme
Copy link
Contributor
@muhme muhme commented Feb 23, 2025

In PR #40 the clickToolbarButton() test was introduced, but it always fails with:

     CypressError: `cy.task('queryDB')` failed with the following error:

The 'task' event has not been registered in the setupNodeEvents method. You must register it before using cy.task()

The Cypress custom task queryDB from Joomla System Tests is not available in testing joomla-cypress itself.

The error is reproducible when running the overall test suite or the single test:

npx cypress run --spec tests/e2e/support.cy.js --config-file tests/cypress.config.mjs

This PR manually implements the article deletion process . Additionally, comments have been added to clarify what is being tested in the clickToolbarButton() test and unified the button names with an initial uppercase letter, as capitalisation does not matter. Please ensure that tests are always run after any changes to confirm that everything continues to function correctly.

In PR joomla-projects#40 the `clickToolbarButton()` test was introduced, but it always fails with:
```
     CypressError: `cy.task('queryDB')` failed with the following error:

The 'task' event has not been registered in the setupNodeEvents method. You must register it before using cy.task()
```

The Cypress custom task `queryDB` from Joomla System Tests is not available in testing joomla-cypress itself.

The error is reproducible when running the overall test suite or the single test:
```
npx cypress run --spec tests/e2e/support.cy.js --config-file tests/cypress.config.mjs
```

This PR manually implements the article deletion process .
Additionally, comments have been added to clarify what is being tested in the clickToolbarButton() test and
unified the button names with an initial uppercase letter, as capitalisation does not matter.
Please ensure that tests are always run after any changes to confirm that everything continues to function correctly.
@laoneo laoneo merged commit cfa1a57 into joomla-projects:main Mar 3, 2025
@laoneo
Copy link
Contributor
laoneo commented Mar 3, 2025

Thanks!

@muhme muhme deleted the fix-test-suite branch March 3, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0