Skip to content

Latest commit

 

History

History
82 lines (67 loc) · 3.63 KB

TESTCASES.md

File metadata and controls

82 lines (67 loc) · 3.63 KB

Test cases

Tests can be executed on the following browsers:

  • Google Chrome
  • Firefox
  • Safari
  • Microsoft Edge

If you have Docker installed and properly configured, you can run the tests on the testcafe/testcafe docker image as well.

TC-1 Checking landing pages elements

  1. Given https://angular.io URL is opened
  2. Then Angular logo in the top navbar should be visible
  3. And Angular logo in the hero section should be visible
  4. And text in hero section should be "One framework. Mobile & desktop."
  5. And Get started button should be visible in the hero section
  6. When Get started button is clicked in the hero section
  7. Then the URL should be https://angular.io/start
  8. And the title on the content should be "Getting Started with Angular: Your First App"

TC-2 Checking search field on landing page

  1. Given https://angular.io URL is opened
  2. Then Search input in the top navbar should be visible
  3. And it should be empty
  4. And it should be "Search" as placeholder
  5. When it is clicked in
  6. And "directive" is typed in it
  7. Then clear icon should be visible in it
  8. And "Directive" should be listed in the "API" section
  9. When "Directive" is clicked in the "API" section
  10. Then the URL should be https://angular.io/api/core/Directive
  11. And the title on the content should be "Directive"

TC-3 Checking form elements

  1. Given https://getbootstrap.com/docs/4.4/components/forms/ URL is opened
  2. Then title of the browser should be "Forms · Bootstrap"
  3. And The readonly input should not be in the viewport
  4. When The readonly input is scrolled into the viewport
  5. Then The readonly input should be in the viewport
  6. And The readonly input should be readonly

TC-4 Interaction with checkbox form elements

  1. Given https://getbootstrap.com/docs/4.4/components/forms/#checkboxes-and-radios URL is opened
  2. Then The default checkbox should be enabled
  3. And The disabled checkbox should be disabled
  4. And The default checkbox should be unchecked
  5. When The default chdckbox is clicked on
  6. Then The default checkbox should be checked

TC-5 Interaction with radio form elements

  1. Given https://getbootstrap.com/docs/4.4/components/forms/#checkboxes-and-radios URL is opened
  2. Then The default radio should be enabled
  3. And The disabled radion should be disabled
  4. And The default radio should be selected
  5. And The second default radio should not be selected
  6. When The second default radio is clicked on
  7. Then The default radio should be not selected
  8. And The second default radio should be selected

TC-6 Checking button form elements

  1. Given https://getbootstrap.com/docs/4.4/components/buttons/#disabled-state URL is opened
  2. Then There should be a button with text "Primary button"
  3. And The primary button should be disabled
  4. When the page is scrolled down 1 page
  5. Then The active primary link button should not be disabled

TC-7 Checking select form elements

  1. Given https://getbootstrap.com/docs/4.4/components/forms/#form-controls URL is opened
  2. Then The example select should be visible
  3. And The example multiple select should be a multiple select
  4. And The selected option in example select should be "1"
  5. And there should not be option like "hello" in example select
  6. And there should be option like "2" in example select
  7. When The option "2" is selected in example select
  8. Then The selected option in example select should be "2"
  9. And Thu number of options in example select should be 5