Uh oh!
There was an error while loading. Please reload this page.
[docs] GS added - #534
Conversation
testcafe-build-bot
commented
May 13, 2016
| This guide will provide you with step-by-step instructions on how to create a functional web test with TestCafe. | ||
| You will learn how to install TestCafe, write a test, run the test on multiple browsers and view test results. | ||
| During creating a test, you will learn the basics of TestCafe API, advancing step by step, from the simple to more elaborate testing techniques. |
There was a problem hiding this comment.
Do we really need this? Is there someone who don't know what "Getting started" is?
There was a problem hiding this comment.
It's a standard intro for GS, that quickly describes what the topic covers.
inikulin
commented
May 13, 2016
Also, we shouldn't repeat ourselves: there are various places there we start to describe functionality like "there are many reporters, you can create plugins, etc.". The better way is split getting started into following sections:
At the end of each section we can have reference to the appropriate articles, e.g. at the end of "Running tests and getting results" we can have links "Learn more about reporters", "Learn more about running configurations", etc. |
inikulin
commented
May 13, 2016
\r- |
testcafe-build-bot
commented
May 26, 2016
testcafe-build-bot
commented
May 27, 2016
MargaritaLoseva
commented
May 27, 2016
FPR |
inikulin
commented
May 27, 2016
\cc @DevExpress/testcafe-docs I'll take a look a little bit later. Can someone else review for now? |
AlexanderMoskovkin
commented
May 27, 2016
@MargaritaLoseva Tests are failed. It seems some links are broken |
MargaritaLoseva
commented
May 27, 2016
@AlexanderMoskovkin Yes, I saw the broken links. They don't work because test api topics are not complete yet. Review only the text, please. |
| const actualText = Hybrid(() => document.querySelector('#article-header').text); | ||
| expect(await actualText.to.equal('Thank You, John Smith!'); | ||
| }; |
| ### Observing Page State | ||
| TestCafe allows you to observe the page state. | ||
| For this purpose, it offers special functions: [Selector](../test-api/executing-client-code/index.md#selector-functions) to get direct access to DOM elements and [Client](test-api/executing-client-code/index.md#client-functions) to obtain arbitrary data from the client side. |
There was a problem hiding this comment.
It's ClientFunction, not Client. Also
it offers special functions
I think it's better to say special kinds of functions, because we don't offer the functions themselves, but the way to construct them.
inikulin
commented
Jun 8, 2016
\r- |
testcafe-build-bot
commented
Jun 9, 2016
| test('Test1', async t => { | ||
| // Test code | ||
| }); | ||
| ``` |
There was a problem hiding this comment.
It's always a little bit weird when we describe several steps of writing code in words with no examples in the middle.
There are two better ways:
- show the code growing step-by-step,
- first show the code and then describe.
There was a problem hiding this comment.
There is a third option: describe code structure using comments in code
There was a problem hiding this comment.
I have used the first way - growing step-by-step
There was a problem hiding this comment.
For this particular example I don't think that growing step-by-step is a good approach. It's quite minimal and describes code organzation for tests, so it preferable to be observed all at once.
There was a problem hiding this comment.
I don't think any other way will look better and more clear than step-by-step
There was a problem hiding this comment.
Can I have a look at step-by-step version?
There was a problem hiding this comment.
I also like the current variant (with growing step-by-step).
I don't want to use comments to describe this code, because comments will litter the test's clear structure.
Also, it's not good idea to describe all the test elements below the code - too much info at once.
There was a problem hiding this comment.
Step-by-step version is already commited
There was a problem hiding this comment.
OK, got it. Let's keep it as is.
VasilyStrelyaev
commented
Jun 9, 2016
\r- |
testcafe-build-bot
commented
Jun 10, 2016
| fixture `Getting Started` | ||
| ``` | ||
| You can optionally specify a start page URL for the fixture by using the [page](../test-api/test-code-structure.md#specifying-the-start-webpage) function. |
There was a problem hiding this comment.
It looks like specifying the start page is optional in this tutorial. But that's not true.
I'd better place a direct instruction here.
VasilyStrelyaev
commented
Jun 10, 2016
\r- |
testcafe-build-bot
commented
Jun 10, 2016
VasilyStrelyaev
commented
Jun 10, 2016
lgtm |
| // Declare the parameterized hybrid function | ||
| // to obtain text content of an element identified by the `id` attribute | ||
| const getElementById = Selector((id) => document.querySelector(`#${id}`)); |
There was a problem hiding this comment.
Need to remove parenths around id here as well
inikulin
commented
Jun 10, 2016
lgtm |
MargaritaLoseva
commented
Jun 10, 2016
\cc @DevExpress/testcafe-docs |
testcafe-build-bot
commented
Jun 10, 2016
AlexanderMoskovkin
commented
Jun 10, 2016
We show how to run a test from the command line. Should we say in Getting started that it is possible to use |
inikulin
commented
Jun 10, 2016
No, this is advanced topic and more likely will be needed only for embedders. |
AlexanderMoskovkin
commented
Jun 10, 2016
lgtm |
MargaritaLoseva
commented
Jun 14, 2016
@kirovboris, @churkin please review |
kirovboris
commented
Jun 14, 2016
lgtm |
1 similar comment
churkin
commented
Jun 14, 2016
lgtm |
churkin
commented
Jun 14, 2016
@testcafe-build-bot \retest |
AlexanderMoskovkin
commented
Jun 14, 2016
@MargaritaLoseva are failed tests ok for now? |
Tests still fail due to broken links as @VasilyStrelyaev doesn't pull topics about API yet. |
closes#283
\cc @inikulin, @VasilyStrelyaev
Please, review only the text (Since test API is not complete, code snippets may not work properly and an image is not added yet. Links to API sections don't work as well.)