-
Notifications
You must be signed in to change notification settings - Fork 60
clean: use eslint on oddname + use encodeFilePath #880
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
Conversation
a49f17f to
24607df
Compare
|
Please rebase :) |
24607df to
071c3af
Compare
instead of split map join - use generateUrl to automatically encode the basename. - Properly test if the error page is not shown Signed-off-by: Robbert Gurdeep Singh <[email protected]>
e7e6251 to
aa238c1
Compare
|
I'll need tot test this first since the test has been split Update: https://dashboard.cypress.io/projects/xysa6x/runs/2568/specs (the quick fail still works 😃 ) |
Signed-off-by: Robbert Gurdeep Singh <[email protected]>
9b659d3 to
711ce4b
Compare
I think this link is another run, looking at the github action checks, all the tests really passed 🤔 I guess we should make sure to only tests EDIT: this is the last test: https://dashboard.cypress.io/projects/xysa6x/runs/2569/overview |
| let failsLeft = 5 | ||
| Cypress.on('fail', (error, runnable) => { | ||
| failsLeft-- | ||
| throw error // throw error to have test still fail | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I don't know about this one.
It seems like an odd thing to do, does cypress not support quick-fail on its own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It supports quick-fail in their "pro plan" (see cypress-io/cypress#518 (comment)).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe using https://github.com/javierbrea/cypress-fail-fast is an option, but that would add a dependency that is only used for one thing (and is implemented in 5 + 3 lines of code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe using javierbrea/cypress-fail-fast is an option, but that would add a dependency that is only used for one thing (and is implemented in 5 + 3 lines of code)
Let get this in then
|
The cypress link above was to demonstrate that the quickfail works. Before, if there was an error with oddname, the test would take hours (more than 6 hours even, maybe less now that it is split up) This run for example, from when I was porting the naughtlynames patch to stable20: https://github.com/nextcloud/viewer/runs/2474367200?check_suite_focus=true , it took more than 360 minutes to finish, although it was clear that the test had failed after a few minutes. |
Definitely a bug, cypress is usually super fast 🤔 |


Since I've backported #868 I learned more about the codebase, and now I know how to do certain things nicer.
map(encodeURIComponent).join(/)with the already existingencodeFilePathcy.get('body > .viewer .icon-error').should('not.exist')