<commit_before>import { makeMockUser } from '@@profile/tests/fixtures/users/user';
import dd4eduNotEnrolled from '@@profile/tests/fixtures/dd4edu/dd4edu-not-enrolled.json';
import notInESR from '@@profile/tests/fixtures/enrollment-system/not-in-esr.json';

import manifest from '~/applications/personalization/dashboard/manifest.json';

import {
  disabilityCompensationExists,
  educationBenefitExists,
  healthCareInfoExists,
} from './helpers';

function sectionHeadingsExist() {
  cy.findByRole('heading', { name: /apply for VA benefits/i }).should('exist');
  cy.findByRole('heading', {
    name: /explore va benefits and health care/i,
  }).should('exist');
}

describe('The My VA Dashboard', () => {
  describe('Should always show benefits of interest', () => {
    beforeEach(() => {
      const user = makeMockUser();
      user.data.attributes.vaProfile.vaPatient = false;
      user.data.attributes.vaProfile.facilities = [];
      cy.intercept('/v0/health_care_applications/enrollment_status', notInESR);
      cy.intercept('/v0/profile/ch33_bank_accounts', dd4eduNotEnrolled);
      cy.login(user);
      cy.visit(manifest.rootUrl);
    });
    it('should show info about disability benefits, health care, and education benefits', () => {
      sectionHeadingsExist();

      cy.findAllByTestId('benefit-of-interest').should('have.length', 3);

      healthCareInfoExists(true);
      disabilityCompensationExists(true);
      educationBenefitExists(true);

      cy.injectAxe();
      cy.axeCheck();
    });
  });
});<commit_msg>Integrate My-VA Benefits E2E-spec with TestRail. (#20508)<commit_after>/**
 * [TestRail-integrated] Spec for My VA - Benefits Payments & Debt
 * @testrailinfo projectId 4
 * @testrailinfo suiteId 5
 * @testrailinfo groupId 4072
 * @testrailinfo runName MyVA-e2e-Benefits
 */
import { makeMockUser } from '@@profile/tests/fixtures/users/user';
import dd4eduNotEnrolled from '@@profile/tests/fixtures/dd4edu/dd4edu-not-enrolled.json';
import notInESR from '@@profile/tests/fixtures/enrollment-system/not-in-esr.json';

import manifest from '~/applications/personalization/dashboard/manifest.json';

import {
  disabilityCompensationExists,
  educationBenefitExists,
  healthCareInfoExists,
} from './helpers';

function sectionHeadingsExist() {
  cy.findByRole('heading', { name: /apply for VA benefits/i }).should('exist');
  cy.findByRole('heading', {
    name: /explore va benefits and health care/i,
  }).should('exist');
}

describe('The My VA Dashboard', () => {
  describe('Should always show benefits of interest', () => {
    beforeEach(() => {
      const user = makeMockUser();
      user.data.attributes.vaProfile.vaPatient = false;
      user.data.attributes.vaProfile.facilities = [];
      cy.intercept('/v0/health_care_applications/enrollment_status', notInESR);
      cy.intercept('/v0/profile/ch33_bank_accounts', dd4eduNotEnrolled);
      cy.login(user);
      cy.visit(manifest.rootUrl);
    });
    it('should show info about disability benefits, health care, and education benefits - C15782', () => {
      sectionHeadingsExist();

      cy.findAllByTestId('benefit-of-interest').should('have.length', 3);

      healthCareInfoExists(true);
      disabilityCompensationExists(true);
      educationBenefitExists(true);

      cy.injectAxeThenAxeCheck();
    });
  });
});
{'fraction_non_alphanumeric': 0.14277144571085784, 'fraction_numerical': 0.010797840431913617, 'mean_word_length': 4.2437106918239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4049304', 'n_tokens_mistral': 1079, 'n_tokens_neox': 1033, 'n_words': 191}