Can I increase maximum number of redirects before failing?
ComFreek opened this issue · 4 comments
Currently, I am facing the following:
expected: 302 https://dl.acm.org/doi/book/10.5555/1206501 --> 200 https://dl.acm.org/action/cookieAbsent
actual: 302 https://dl.acm.org/doi/book/10.5555/1206501 --> 302 https://dl.acm.org/doi/book/10.5555/1206501?cookieSet=1 --> 200 https://dl.acm.org/action/cookieAbsent
Does it fail due to there being two redirects? If so, can I increase the maximum number of redirects somehow?
Same, I would like to up the threshold or if it resolves eventually for external links then pass.
Or maybe I'm misunderstanding the todoPatterns
when it's saying strings to recognize and ignore. Does that mean specific urls or can I specify a condition like a 302 --> 200
@jonmccon You can match any part of the strings you see in the TAP report under name
, operator
, expected
, ´actual, and
at`
You can indeed match on 302 --> 200
You can see the super naive implementation of how that pattern is turned into a matcher on the TAP report: https://github.com/Munter/hyperlink/blob/master/lib/cli.js#L132-L139