All files / utils constants.js

100% Statements 56/56
100% Branches 0/0
100% Functions 0/0
100% Lines 56/56

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 571x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * Application constants and expected test values
 */
const PAGE_TITLES = {
  HOME: 'Automation Exercise',
  TEST_CASES: 'Automation Practice Website for UI Testing - Test Cases',
};
 
const HEADINGS = {
  TEST_CASES: 'TEST CASES',
  SUBTITLE: 'Below is the list of test Cases for you to practice the Automation. Click on the scenario for detailed Test Steps:',
};
 
const EXPECTED_TEST_CASES = [
  'Test Case 1: Register User',
  'Test Case 2: Login User with correct email and password',
  'Test Case 3: Login User with incorrect email and password',
  'Test Case 4: Logout User',
  'Test Case 5: Register User with existing email',
  'Test Case 6: Contact Us Form',
  'Test Case 7: Verify Test Cases Page',
  'Test Case 8: Verify All Products and product detail page',
  'Test Case 9: Search Product',
  'Test Case 10: Verify Subscription in home page',
  'Test Case 11: Verify Subscription in Cart page',
  'Test Case 12: Add Products in Cart',
  'Test Case 13: Verify Product quantity in Cart',
  'Test Case 14: Place Order: Register while Checkout',
  'Test Case 15: Place Order: Register before Checkout',
  'Test Case 16: Place Order: Login before Checkout',
  'Test Case 17: Remove Products From Cart',
  'Test Case 18: View Category Products',
  'Test Case 19: View & Cart Brand Products',
  'Test Case 20: Search Products and Verify Cart After Login',
  'Test Case 21: Add review on product',
  'Test Case 22: Add to cart from Recommended items',
  'Test Case 23: Verify address details in checkout page',
  'Test Case 24: Download Invoice after purchase order',
  'Test Case 25: Verify Scroll Up using \'Arrow\' button and Scroll Down functionality',
  'Test Case 26: Verify Scroll Up without \'Arrow\' button and Scroll Down functionality',
];
 
const TEST_CASE_7_EXPECTED_STEPS = [
  '1. Launch browser',
  "2. Navigate to url 'http://automationexercise.com'",
  '3. Verify that home page is visible successfully',
  "4. Click on 'Test Cases' button",
  '5. Verify user is navigated to test cases page successfully',
];
 
module.exports = {
  PAGE_TITLES,
  HEADINGS,
  EXPECTED_TEST_CASES,
  TEST_CASE_7_EXPECTED_STEPS,
};