Skip to content
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

E2e tests with both routing types #386

Merged

Conversation

parostatkiem-zz
Copy link
Contributor

@parostatkiem-zz parostatkiem-zz commented Jan 28, 2019

Description
UI tests now work with both types of routing. The routing type is read dynamically from window.Luigi...useHashRouting property.

Changes proposed in this pull request:

  • add cy.expectPathToBe() and use it instead of expect(loc.pathname).to.eq(...)
  • add isHashRoutingEnabled() helper function to do the check manually in special cases (like location.search in one of the tests)

Copy link
Contributor

@dariadomagala-sap dariadomagala-sap left a comment

Choose a reason for hiding this comment

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

Good work!

@parostatkiem-zz parostatkiem-zz merged commit 3d6428d into SAP:master Jan 29, 2019
@parostatkiem-zz parostatkiem-zz deleted the e2e-tests-with-both-routing-types branch January 29, 2019 14:12
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
* Introduce cy.expectPathToBe() command

* Make tets working with hashRouting

* Add isHashRoutingOn()

* Remove unused import

* create cy.expectSearchToBe()
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.

3 participants