Skip to content

Feat cy port#570

Merged
line-o merged 2 commits intomasterfrom
feat-cy-port
Mar 16, 2026
Merged

Feat cy port#570
line-o merged 2 commits intomasterfrom
feat-cy-port

Conversation

@duncdrum
Copy link
Copy Markdown
Contributor

@duncdrum duncdrum commented Jan 28, 2026

This ports the test from the original 24 wdio specs (npm test) to cypress.

none of the old tests or their dependencies have been removed yet, as requested.

It also adds actually executing the tests on CI using the joewiz/hsg-project container.

note: the e2e test run is not yet taken into account for automated releases, that still works as before.

OP#290

@duncdrum duncdrum requested a review from windauer January 28, 2026 16:47
@duncdrum duncdrum added enhancement github_actions Pull requests that update GitHub Actions code labels Jan 28, 2026
@duncdrum duncdrum marked this pull request as ready for review January 28, 2026 16:49
@duncdrum duncdrum requested review from line-o and removed request for windauer February 16, 2026 12:28
Copy link
Copy Markdown
Contributor

@line-o line-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went through each commit separately as the changesets where so large.
I see that this allows to follow the development of the tests and the tests we end up with are easy to understand and grouped by the pages they are testing.
I would want to discuss if we need to keep the intermediate steps in the git history or if it would be cleaner and also easier to understand in the future to squash the changes into one ore two.
Especially the fact that a lot of files, commands and settings are first created just to be later removed again is why I think the project would benefit from a cleaned up history.

If we want to

  1. keep the connection from a test case to the previous test case
    I would be in favour of a comment in the test file that refs the original web driver test file
  2. keep the history of the approach taken
    I would prefer that to be summarised in text form or that we keep this branch and not delete it.

Happy to hear your thoughts on all this. Just to be clear, I think that the tests will make a change for the better as they are much cleaner in both setup and grouping. So I am looking forward to making this switch.

Comment thread cypress.config.cjs
Comment thread cypress.config.cjs Outdated
Comment thread package.json Outdated
Comment thread cypress.config.cjs
Comment thread tests/cypress/e2e/conferences/prod_conferences_titles.cy.js Outdated
Comment thread tests/cypress/e2e/search/prod_search_filter_results.cy.js Outdated
Comment thread tests/cypress/e2e/search/prod_search_new-indexes.cy.js Outdated
Comment thread tests/cypress/e2e/ui-components/breadcrumb.cy.js
Comment thread README.md
### Check currently installed versions

1. node: `node -v` => Should output `v18.18.2`
1. node: `node -v` => Should satisfy `package.json` engines (e.g. `>=18.0.0`; the asdf example uses 18.18.2).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the asdf example that is referred to here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seection 1.1 from this readme

Comment thread README.md
- Add Cypress e2e suite with one spec per page and beforeEach(visit)
- Add normalizeHeadlineText custom command; use cy.contains for simple headlines
- Group specs in subfolders (e.g. conferences by year, countries/archives)
- Add @see comments referencing original tests/specs/**/prod_*.spec.js (wdio)
- Add .github/workflows/cypress.yml to run Cypress in Firefox against eXist
- Update README and add tests/cypress/COVERAGE_COMPARISON.md
- Align search new-indexes assertions (China, Tokyo) with 12eb024 (at least N results)
- Increase body-max-line-length from 200 to 250
- Add footer-max-line-length rule set to 150
@duncdrum
Copy link
Copy Markdown
Contributor Author

duncdrum commented Mar 3, 2026

@line-o added inline refs and squashed into a single commit. I also incorporated the changes from 12eb024 into this PR and rebased.

the commitlint errors weren't from my commits, so I upped the acceptable line length.

@line-o line-o self-requested a review March 16, 2026 14:23
Copy link
Copy Markdown
Contributor

@line-o line-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squeaky clean

@line-o line-o merged commit 0c0f5ac into master Mar 16, 2026
5 checks passed
@joewiz
Copy link
Copy Markdown
Member

joewiz commented Mar 16, 2026

🎉 This PR is included in version 3.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement github_actions Pull requests that update GitHub Actions code released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants