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
[docs] Add info about the file:// protocol to a recipe #1255
Conversation
We need docs at first, so it can be referenced here (I guess it should be described in |
Well, this PR actually adds one sentence and an example to |
32fc258
to
492047d
Compare
492047d
to
8ccb740
Compare
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.
/r-
To test webpages in local directories, you can use the `file://` protocol. | ||
|
||
```js | ||
fixture `MyFixture` |
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.
AFAIK, we can use relative path as well.
fixture `MyFixture`
.page `../my-website/index.html`;
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.
@LavrovArtem is it true?
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.
@VasilyStrelyaev I think this question is about testcafe
but not testcafe-hammerhead
. I don't know how it works in testcafe
.
@AndreyBelym ping
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.
Relative to what it will be then in your opinion?
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 should be relative to current test file, e.g. if i have .html
pages for every test and i store them in repository.
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.
Oh, you speaking about file:
protocol, your example shows URL. If so, yes, it would be nice to have relative path support (I suppose we don't have one at the moment)
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.
You can use relative paths for pages only in legacy API if you have specified baseUrl
in test_config.json
. Currently you can only skip protocol from URL, in this case it's assumed to be http://
. So relative file-protocol URLs certainly don't work now.
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.
8ccb740
to
faa26e7
Compare
d564b59
to
f9872ab
Compare
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.
lgtm
If we are not going to do #1286 in this sprint, let's review this as is |
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.
Shouldn't be released without #1286. Feature is not ready.
@testcafe-build-bot \retest |
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.
lgtm
* Add info about the file protocol * Add docs for file protocol * Add info about relative URLs * Fix lint
\cc @DevExpress/testcafe-docs