-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
fix(scroll): leading // no longer crashes scrollBehavior init #3679
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ module.exports = { | |
const TIMEOUT = 2000 | ||
|
||
browser | ||
|
||
.url('http://localhost:8080/scroll-behavior/') | ||
.waitForElementVisible('#app', 1000) | ||
.assert.count('li a', 6) | ||
|
@@ -138,6 +139,15 @@ module.exports = { | |
'scroll to anchor on load' | ||
) | ||
|
||
// #2593 no crash on malformed URL | ||
.url('http://localhost:8080//scroll-behavior') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I saw your comment on the issue but entering through this URL is not correct because the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if the base URL is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but then you are looking for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right - in this case the base is |
||
.execute(function () { | ||
location.reload(true) | ||
}) | ||
.waitForElementVisible('#app', 1000) | ||
.assert.count('li a', 6) | ||
.assert.containsText('.view', 'home') | ||
|
||
.end() | ||
} | ||
} |
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 the
absolutePath
should not remove the protocol and path in line 22 but we need to make sure this change works well withfile://
protocol as wellThere 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.
I think that would be ideal, but I don't 100% understand what this code is written to accomplish. there aren't any UTs on this method and I wasn't able to get the e2e tests running locally due to a chromedriver/chrome version mismatch I couldn't resolve, so I kinda need to be sure of what I'm doing in order to prevent needing to push random changes to run circleci builds