Fix unit tests.

This commit is contained in:
Bryan Mauger 2024-04-22 10:53:24 -04:00
parent 56ad7bcd3d
commit 771e57f804

View file

@ -24,12 +24,12 @@ describe('menu-modal.vue', () => {
expect(modalFooter.text()).toContain('Safelite Group');
});
it('Should return Terms of service text link text', async () => {
it('Should return Terms of use text link text', async () => {
// Act
const wrapper = shallowMount(menuModal);
// Expect
expect(wrapper.html()).toContain('Terms of service');
expect(wrapper.html()).toContain('Terms of use');
});
it('Should return "Your privacy choices" text link text', async () => {
@ -53,7 +53,7 @@ describe('menu-modal.vue', () => {
// Expect
const icon = wrapper.find('[data-id="ccpa-icon"]');
expect(icon.isVisible()).toBe(true);
expect(icon.attributes('alt')).toBe('Your privacy choices');
expect(icon.attributes('alt')).toBe('Notice at collection');
});
it('Should return Warranty text link text', async () => {