{"action":"created","comment":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/89829366","pull_request_review_id":10361450,"id":89829366,"diff_hunk":"@@ -0,0 +1,80 @@\n+---\n+layout: docs\n+title: Assertions\n+permalink: /documentation/test-api/assertions/\n+checked: false\n+---\n+# Assertions\n+\n+To check if the state of the tested webpage matches the one you expect to see, use *assertions*.\n+\n+TestCafe provides a comprehensive [set of assertions](assertion-api.md) and all of them based on Behavior Driven Development style (BDD-style).\n+\n+This topic contains the following sections.\n+\n+* [Assertion timeout](#assertion-timeout)\n+* [Assertion options](#assertion-options)\n+  * [options.timeout](#optionstimeout)\n+\n+The following example demonstrates how to check whether two values are equal or not.\n+\n+```text\n+    await t.expect(actual).eql(expected, message, options);\n+```\n+\n+Parameter              | Type     | Description\n+---------------------- | -------- | -------------------------------------------------------------------------------\n+`actual`                 | Any type | The comparison value\n+`expected`                 | Any type | Expected value\n+`message`&#160;*(optional)* | String   | Assertion message, will be indicated in the report in case of error.\n+`options`&#160;*(optional)* | Object   | See [Options](#assertion-options).\n+\n+Assertions allow you to check values of the standard types (String, Number, Object and etc.). You can also use assertions","path":"docs/articles/documentation/test-api/assertions/index.md","position":32,"original_position":32,"commit_id":"c629b8861d53783a8f7fb1ca3861297ba2485dec","original_commit_id":"c629b8861d53783a8f7fb1ca3861297ba2485dec","user":{"login":"AlexanderMoskovkin","id":12047804,"avatar_url":"https://avatars.githubusercontent.com/u/12047804?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderMoskovkin","html_url":"https://github.com/AlexanderMoskovkin","followers_url":"https://api.github.com/users/AlexanderMoskovkin/followers","following_url":"https://api.github.com/users/AlexanderMoskovkin/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderMoskovkin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderMoskovkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderMoskovkin/subscriptions","organizations_url":"https://api.github.com/users/AlexanderMoskovkin/orgs","repos_url":"https://api.github.com/users/AlexanderMoskovkin/repos","events_url":"https://api.github.com/users/AlexanderMoskovkin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderMoskovkin/received_events","type":"User","site_admin":false},"body":"I think we should place `use assertions to check states ...` in the first place.\r\nMaybe `Assertions allow you to check states of the webpage's elements or value of the standard types`\r\n/cc @helen-dikareva @lexkazakov","created_at":"2016-11-28T17:04:39Z","updated_at":"2016-11-28T17:21:17Z","html_url":"https://github.com/DevExpress/testcafe/pull/997#discussion_r89829366","pull_request_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/997","_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments/89829366"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/997#discussion_r89829366"},"pull_request":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/997"}}},"pull_request":{"url":"https://api.github.com/repos/DevExpress/testcafe/pulls/997","id":95506830,"html_url":"https://github.com/DevExpress/testcafe/pull/997","diff_url":"https://github.com/DevExpress/testcafe/pull/997.diff","patch_url":"https://github.com/DevExpress/testcafe/pull/997.patch","issue_url":"https://api.github.com/repos/DevExpress/testcafe/issues/997","number":997,"state":"open","locked":false,"title":"[docs] Assertions documentation","user":{"login":"helen-dikareva","id":12034551,"avatar_url":"https://avatars.githubusercontent.com/u/12034551?v=3","gravatar_id":"","url":"https://api.github.com/users/helen-dikareva","html_url":"https://github.com/helen-dikareva","followers_url":"https://api.github.com/users/helen-dikareva/followers","following_url":"https://api.github.com/users/helen-dikareva/following{/other_user}","gists_url":"https://api.github.com/users/helen-dikareva/gists{/gist_id}","starred_url":"https://api.github.com/users/helen-dikareva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helen-dikareva/subscriptions","organizations_url":"https://api.github.com/users/helen-dikareva/orgs","repos_url":"https://api.github.com/users/helen-dikareva/repos","events_url":"https://api.github.com/users/helen-dikareva/events{/privacy}","received_events_url":"https://api.github.com/users/helen-dikareva/received_events","type":"User","site_admin":false},"body":"/cc @DevExpress/testcafe-docs ","created_at":"2016-11-28T14:20:57Z","updated_at":"2016-11-28T17:21:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e9f719a9d775f37af1a66f5b19f4f361b5bd520","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/997/commits","review_comments_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/997/comments","review_comment_url":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/issues/997/comments","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/c629b8861d53783a8f7fb1ca3861297ba2485dec","head":{"label":"helen-dikareva:assertion-documentation","ref":"assertion-documentation","sha":"c629b8861d53783a8f7fb1ca3861297ba2485dec","user":{"login":"helen-dikareva","id":12034551,"avatar_url":"https://avatars.githubusercontent.com/u/12034551?v=3","gravatar_id":"","url":"https://api.github.com/users/helen-dikareva","html_url":"https://github.com/helen-dikareva","followers_url":"https://api.github.com/users/helen-dikareva/followers","following_url":"https://api.github.com/users/helen-dikareva/following{/other_user}","gists_url":"https://api.github.com/users/helen-dikareva/gists{/gist_id}","starred_url":"https://api.github.com/users/helen-dikareva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helen-dikareva/subscriptions","organizations_url":"https://api.github.com/users/helen-dikareva/orgs","repos_url":"https://api.github.com/users/helen-dikareva/repos","events_url":"https://api.github.com/users/helen-dikareva/events{/privacy}","received_events_url":"https://api.github.com/users/helen-dikareva/received_events","type":"User","site_admin":false},"repo":{"id":41913398,"name":"testcafe-phoenix","full_name":"helen-dikareva/testcafe-phoenix","owner":{"login":"helen-dikareva","id":12034551,"avatar_url":"https://avatars.githubusercontent.com/u/12034551?v=3","gravatar_id":"","url":"https://api.github.com/users/helen-dikareva","html_url":"https://github.com/helen-dikareva","followers_url":"https://api.github.com/users/helen-dikareva/followers","following_url":"https://api.github.com/users/helen-dikareva/following{/other_user}","gists_url":"https://api.github.com/users/helen-dikareva/gists{/gist_id}","starred_url":"https://api.github.com/users/helen-dikareva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helen-dikareva/subscriptions","organizations_url":"https://api.github.com/users/helen-dikareva/orgs","repos_url":"https://api.github.com/users/helen-dikareva/repos","events_url":"https://api.github.com/users/helen-dikareva/events{/privacy}","received_events_url":"https://api.github.com/users/helen-dikareva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/helen-dikareva/testcafe-phoenix","description":null,"fork":true,"url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix","forks_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/forks","keys_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/teams","hooks_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/hooks","issue_events_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/events","assignees_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/tags","blobs_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/languages","stargazers_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/stargazers","contributors_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/contributors","subscribers_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/subscribers","subscription_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/subscription","commits_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/merges","archive_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/downloads","issues_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/labels{/name}","releases_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/releases{/id}","deployments_url":"https://api.github.com/repos/helen-dikareva/testcafe-phoenix/deployments","created_at":"2015-09-04T11:59:28Z","updated_at":"2016-06-17T10:04:41Z","pushed_at":"2016-11-28T14:18:46Z","git_url":"git://github.com/helen-dikareva/testcafe-phoenix.git","ssh_url":"git@github.com:helen-dikareva/testcafe-phoenix.git","clone_url":"https://github.com/helen-dikareva/testcafe-phoenix.git","svn_url":"https://github.com/helen-dikareva/testcafe-phoenix","homepage":null,"size":29989,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DevExpress:master","ref":"master","sha":"7a59ae2a1ae7dfb435805fba54e2e697d2ac5e6c","user":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"repo":{"id":34262857,"name":"testcafe","full_name":"DevExpress/testcafe","owner":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevExpress/testcafe","description":"Automated browser testing for the modern web development stack.","fork":false,"url":"https://api.github.com/repos/DevExpress/testcafe","forks_url":"https://api.github.com/repos/DevExpress/testcafe/forks","keys_url":"https://api.github.com/repos/DevExpress/testcafe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevExpress/testcafe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevExpress/testcafe/teams","hooks_url":"https://api.github.com/repos/DevExpress/testcafe/hooks","issue_events_url":"https://api.github.com/repos/DevExpress/testcafe/issues/events{/number}","events_url":"https://api.github.com/repos/DevExpress/testcafe/events","assignees_url":"https://api.github.com/repos/DevExpress/testcafe/assignees{/user}","branches_url":"https://api.github.com/repos/DevExpress/testcafe/branches{/branch}","tags_url":"https://api.github.com/repos/DevExpress/testcafe/tags","blobs_url":"https://api.github.com/repos/DevExpress/testcafe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevExpress/testcafe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevExpress/testcafe/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevExpress/testcafe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevExpress/testcafe/statuses/{sha}","languages_url":"https://api.github.com/repos/DevExpress/testcafe/languages","stargazers_url":"https://api.github.com/repos/DevExpress/testcafe/stargazers","contributors_url":"https://api.github.com/repos/DevExpress/testcafe/contributors","subscribers_url":"https://api.github.com/repos/DevExpress/testcafe/subscribers","subscription_url":"https://api.github.com/repos/DevExpress/testcafe/subscription","commits_url":"https://api.github.com/repos/DevExpress/testcafe/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevExpress/testcafe/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevExpress/testcafe/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevExpress/testcafe/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevExpress/testcafe/contents/{+path}","compare_url":"https://api.github.com/repos/DevExpress/testcafe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevExpress/testcafe/merges","archive_url":"https://api.github.com/repos/DevExpress/testcafe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevExpress/testcafe/downloads","issues_url":"https://api.github.com/repos/DevExpress/testcafe/issues{/number}","pulls_url":"https://api.github.com/repos/DevExpress/testcafe/pulls{/number}","milestones_url":"https://api.github.com/repos/DevExpress/testcafe/milestones{/number}","notifications_url":"https://api.github.com/repos/DevExpress/testcafe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevExpress/testcafe/labels{/name}","releases_url":"https://api.github.com/repos/DevExpress/testcafe/releases{/id}","deployments_url":"https://api.github.com/repos/DevExpress/testcafe/deployments","created_at":"2015-04-20T13:43:28Z","updated_at":"2016-11-27T15:38:01Z","pushed_at":"2016-11-28T16:51:19Z","git_url":"git://github.com/DevExpress/testcafe.git","ssh_url":"git@github.com:DevExpress/testcafe.git","clone_url":"https://github.com/DevExpress/testcafe.git","svn_url":"https://github.com/DevExpress/testcafe","homepage":"https://devexpress.github.io/testcafe/","size":31235,"stargazers_count":1255,"watchers_count":1255,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":42,"mirror_url":null,"open_issues_count":83,"forks":42,"open_issues":83,"watchers":1255,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/997"},"html":{"href":"https://github.com/DevExpress/testcafe/pull/997"},"issue":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/997"},"comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/issues/997/comments"},"review_comments":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/997/comments"},"review_comment":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevExpress/testcafe/pulls/997/commits"},"statuses":{"href":"https://api.github.com/repos/DevExpress/testcafe/statuses/c629b8861d53783a8f7fb1ca3861297ba2485dec"}}}}
{"actor":{"display_login":"AlexanderMoskovkin"}}