Skip to content

Commit

Permalink
VACMS-15414 Update homepage Cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
randimays committed Oct 10, 2023
1 parent 96598d8 commit a5a084e
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 435 deletions.
58 changes: 58 additions & 0 deletions src/applications/static-pages/homepage/tests/header-disability.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// VA Benefits and Health Care -> Health care
export const disability = '[data-e2e-id="vetnav-level2--disability"]';
export const viewAll = {
id: 'view-all-in-disability',
href: '/disability',
text: 'View all in disability',
};

export const getHealthCareBenefits = 'vetnav-column-one-header';
export const manageYourHealth = 'vetnav-column-one-header';

export const links = [
{
id: '[data-e2e-id="about-va-health-benefits-0"]',
href: '/health-care/about-va-health-benefits',
text: 'About VA health benefits',
},
{
id: '[data-e2e-id="how-to-apply-1"]',
href: '/health-care/how-to-apply',
text: 'How to apply',
},
{
id: '[data-e2e-id="family-and-caregiver-health-benefits-2"]',
href: '/health-care/family-caregiver-benefits',
text: 'Family and caregiver health benefits',
},
{
id: '[data-e2e-id="apply-now-for-health-care-3"]',
href: '/health-care/apply/application',
text: 'Apply now for health care',
},
{
id: '[data-e2e-id="send-a-secure-message-to-your-health-care-team-1"]',
href: '/health-care/secure-messaging',
text: 'Send a secure message to your health care team',
},
{
id: '[data-e2e-id="send-a-secure-message-to-your-health-care-team-1"]',
href: '/health-care/secure-messaging',
text: 'Send a secure message to your health care team',
},
{
id: '[data-e2e-id="schedule-and-manage-health-appointments-2"]',
href: '/health-care/schedule-view-va-appointments',
text: 'Schedule and manage health appointments',
},
{
id: '[data-e2e-id="view-your-lab-and-test-results-3"]',
href: '/health-care/view-test-and-lab-results',
text: 'View your lab and test results',
},
{
id: '[data-e2e-id="order-hearing-aid-batteries-and-accessories-4"]',
href: '/health-care/order-hearing-aid-batteries-and-accessories',
text: 'Order hearing aid batteries and accessories',
},
];
69 changes: 69 additions & 0 deletions src/applications/static-pages/homepage/tests/header-health-care.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
export const vaBenefitsAndHealthCareButton =
'[data-e2e-id="va-benefits-and-health-care-0"]';

// VA Benefits and Health Care -> Health care
export const healthCare = '[data-e2e-id="vetnav-level2--health-care"]';
export const viewAll = {
id: 'view-all-in-health-care',
href: '/health-care',
text: 'View all in health care',
};

export const headings = [
{
id: '#vetnav-column-one-header',
text: 'Get health care benefits',
},
{
id: '#vetnav-column-one-header',
text: 'Manage your health',
},
];

export const links = [
{
id: '[data-e2e-id="about-va-health-benefits-0"]',
href: '/health-care/about-va-health-benefits',
text: 'About VA health benefits',
},
{
id: '[data-e2e-id="how-to-apply-1"]',
href: '/health-care/how-to-apply',
text: 'How to apply',
},
{
id: '[data-e2e-id="family-and-caregiver-health-benefits-2"]',
href: '/health-care/family-caregiver-benefits',
text: 'Family and caregiver health benefits',
},
{
id: '[data-e2e-id="apply-now-for-health-care-3"]',
href: '/health-care/apply/application',
text: 'Apply now for health care',
},
{
id: '[data-e2e-id="send-a-secure-message-to-your-health-care-team-1"]',
href: '/health-care/secure-messaging',
text: 'Send a secure message to your health care team',
},
{
id: '[data-e2e-id="send-a-secure-message-to-your-health-care-team-1"]',
href: '/health-care/secure-messaging',
text: 'Send a secure message to your health care team',
},
{
id: '[data-e2e-id="schedule-and-manage-health-appointments-2"]',
href: '/health-care/schedule-view-va-appointments',
text: 'Schedule and manage health appointments',
},
{
id: '[data-e2e-id="view-your-lab-and-test-results-3"]',
href: '/health-care/view-test-and-lab-results',
text: 'View your lab and test results',
},
{
id: '[data-e2e-id="order-hearing-aid-batteries-and-accessories-4"]',
href: '/health-care/order-hearing-aid-batteries-and-accessories',
text: 'Order hearing aid batteries and accessories',
},
];
Empty file.
Loading

0 comments on commit a5a084e

Please sign in to comment.