-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fixes #2662 - URL with a space in the domain name should not be accepted #2701
Conversation
@Anushi1998 Two of the functional tests have failed. Could you double check? Thanks.
|
@Anushi1998 you need to double check this test. webcompat.com/tests/functional/reporting-non-auth.js Lines 68 to 95 in cc26a91
|
a7ae01c
to
495668b
Compare
@karlcow As I don't have permission can you please SSH into CI Container and provide me two debug files. If there is another way around to download them please let me know that :) |
@Anushi1998 It's not an issue about linting. It's a functional test failing. And it fails specifically about the modification which was introduced with this PR. In #2701 (comment) This is the link to the test webcompat.com/tests/functional/reporting-non-auth.js It would be good to add an additional test with a URL with space. The functional tests are a series of programmatic steps using the UI and checking what should be the result. If you want to run the functional tests locally, just follow the instructions in Hope it helps. |
@karlcow I have run The CircleCI says this now
I will add a functional test which will check the URL with space, currently I have not included that :) |
I have triggered another run on CircleCI to see if the tests are failing again. |
And this time it failed with more errors. :) why is it complaining about This PR is not touching to this file… or is it greenkeeper messing up. |
This comment has been minimized.
This comment has been minimized.
Wondering if circleci cache is stale here... |
This comment has been minimized.
This comment has been minimized.
OK, so https://stackoverflow.com/a/52075043/66348 This might be @Greenkeeper[bot] causing more problems. On my machine:
Neat, I can ssh into the circleci container:
Welp, not eslint. prettier is different on my machine and circle-ci. @Anushi1998, can you past the output of those 2 commands here? |
OK, so @Greenkeeper[bot] isn't to blame here. We just have a very vague range. I can send in a PR fixing it, you'll just need to rebase. Sorry about the confusion @Anushi1998. |
Heh, if I had just checked the issues before doing the research, we'd know that @Greenkeeper[bot] figured it out for us. +1 to the bot: #2704 |
@Anushi1998, ok please rebase against the latest master and re-push -- tests should pass. |
@miketaylr Very sorry for unavailability. I just saw the mails. Thanks for fixing it. I will rebase it against master and let you know the results :) |
heh, no need to apologize. no rush at all. |
ok very cool @Anushi1998 Something like "space in domain name validation"() {
return FunctionalHelpers.openPage(
this,
url("/issues/new"),
".js-report-buttons"
)
.findByCssSelector("#url")
.click()
.type("http:// example.com")
.end()
.sleep(500)
.findByCssSelector(".form-message-error") |
Signed-off-by: Anushi Maheshwari <[email protected]>
Ok so I am done with adding tests now :) Also @miketaylr would you mind telling how you can resolve the comment, I can't see an option for the same. Is it something to do with admin work/Github API? |
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.
@Anushi1998 Thanks a lot! Cool and very useful work!
:) |
I actually don't know! GitHub might have some documentation, but it's not required to do so IMHO. |
Fixes #2662
Added a space check to validate URL.
r?@karlcow