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

Adds UI tests for invalid idSite param #11875

Merged
merged 1 commit into from Jul 17, 2017
Merged

Adds UI tests for invalid idSite param #11875

merged 1 commit into from Jul 17, 2017

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jul 17, 2017

fixes #11848

@sgiehl sgiehl added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Jul 17, 2017
@sgiehl sgiehl added this to the 3.0.5 milestone Jul 17, 2017
@mneudert
Copy link
Member

Slow me missed that one :D

Screenshots look as expected I think. There is potentially a third case one if you enter a site with a value being int-casted 0 (at least I think that is what is going on there), like a literal zero or something non-numeric. Would that be relevant?

@sgiehl
Copy link
Member Author

sgiehl commented Jul 17, 2017

hm... shouldn't hurt to add a test for that as well

@sgiehl
Copy link
Member Author

sgiehl commented Jul 17, 2017

Actually setting a invalid site currently results in:
image

Imho we maybe shouldn't show such an error message to non super users. Most users might not even understand the error, so maybe we should simply redirect to index or similar. Will create a new issue for this, and won't add a test for it now

@sgiehl sgiehl merged commit ef044ae into 3.x-dev Jul 17, 2017
@sgiehl sgiehl deleted the invalidsiteuitest branch July 17, 2017 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show the login form instead of "An error occured: Invalid site"
2 participants