-
Notifications
You must be signed in to change notification settings - Fork 126
/
diary-codes-content.cypress.spec.js
64 lines (58 loc) · 2.54 KB
/
diary-codes-content.cypress.spec.js
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
57
58
59
60
61
62
63
64
import mockFeatureToggles from './fixtures/mocks/feature-toggles.json';
import mockDebts from './fixtures/mocks/debts.json';
import mockUser from './fixtures/mocks/mock-user.json';
describe('Diary Codes', () => {
beforeEach(() => {
cy.login(mockUser);
cy.intercept('GET', '/v0/feature_toggles*', mockFeatureToggles);
cy.intercept('GET', '/v0/debts', mockDebts);
cy.visit('/');
cy.visit('/manage-va-debt/your-debt');
cy.injectAxe();
});
it.skip('renders expected content for diary code: 080, 850, 852, 860, 855', () => {
cy.get('[data-testid="diary-codes-status"]').contains(
'Status: We referred this debt to the U.S. Department of the Treasury.',
);
cy.get('[data-testid="diary-code-080-next-step"]').contains(
'Next step: Call the U.S. Department of the Treasury’s Debt Management Center at 888-826-3127, 8:30 a.m. to 6:30 p.m. ET. ',
);
cy.axeCheck();
});
it('renders expected content for diary code: 100, 102, 130, 140', () => {
cy.get('[data-testid="diary-codes-status"]').contains(
'Status: Your payment is due now.',
);
cy.get('[data-testid="diary-code-100-next-step"]').contains(
'Next step: Please pay now or contact us to start making payments again to avoid collection actions.',
);
cy.axeCheck();
});
it('renders expected content for diary code: 101, 602, 607, 608, 610, 611, 614, 615, 617', () => {
cy.get('[data-testid="diary-codes-status"]').contains(
'Status: We’re keeping part of yourCH33 Housing EDUpayments each month to pay your debt (called monthly offsets).',
);
cy.get('[data-testid="diary-code-608-next-step"]').contains(
'Next step: We’ll keep offsetting your benefits each month until your debt is paid in full.',
);
cy.axeCheck();
});
it('renders expected content for diary code: 117', () => {
cy.get('[data-testid="diary-codes-status"]').contains(
'Status: Your payment is past due.',
);
cy.get('[data-testid="diary-code-117-next-step"]').contains(
'Next step: Please pay now or contact us about payment options byMay 31st, 2017,to avoid additional collection action. ',
);
cy.axeCheck();
});
it('renders expected content for diary code: 123', () => {
cy.get('[data-testid="diary-codes-status"]').contains(
'Status: Your payment is past due.',
);
cy.get('[data-testid="diary-code-123-next-step"]').contains(
'Next step: Please pay now or contact us about payment options byOctober 7th, 2018,to avoid collection actions.',
);
cy.axeCheck();
});
});