Updating tests back to how they were for now
This commit is contained in:
parent
55498b4d98
commit
0eb311a76b
2 changed files with 24 additions and 26 deletions
|
|
@ -84,6 +84,29 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, methodToRu
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('coverageStatement.vue', () => {
|
describe('coverageStatement.vue', () => {
|
||||||
|
describe('Navigation', () => {
|
||||||
|
test('Function called on any FORWARD navigation', () => {
|
||||||
|
// Arrange
|
||||||
|
const mainInitialState = {
|
||||||
|
order: {
|
||||||
|
policy: {
|
||||||
|
isITAC: null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const { wrapper } = getMountedComponent(mainInitialState);
|
||||||
|
|
||||||
|
// Act
|
||||||
|
wrapper.vm.forwardButtonAction();
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
expect(wrapper.vm.mainStore.updatePolicyITACFlag)
|
||||||
|
.toHaveBeenCalledTimes(1);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe.skip('coverageStatement.vue-broken', () => {
|
||||||
describe('method arePagePrerequisitesValid...', () => {
|
describe('method arePagePrerequisitesValid...', () => {
|
||||||
test('Should return true for valid page requisites if vin exists', () => {
|
test('Should return true for valid page requisites if vin exists', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -504,24 +527,6 @@ describe('coverageStatement.vue', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('Navigation', () => {
|
describe('Navigation', () => {
|
||||||
test('Function called on any FORWARD navigation', () => {
|
|
||||||
// Arrange
|
|
||||||
const mainInitialState = {
|
|
||||||
order: {
|
|
||||||
policy: {
|
|
||||||
isITAC: null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const { wrapper } = getMountedComponent(mainInitialState);
|
|
||||||
|
|
||||||
// Act
|
|
||||||
wrapper.vm.forwardButtonAction();
|
|
||||||
|
|
||||||
// Assert
|
|
||||||
expect(wrapper.vm.mainStore.updatePolicyITACFlag)
|
|
||||||
.toHaveBeenCalledTimes(1);
|
|
||||||
});
|
|
||||||
test('If Unverified, navigate forward with CLICKED_FORWARD scenario', () => {
|
test('If Unverified, navigate forward with CLICKED_FORWARD scenario', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const mainInitialState = {
|
const mainInitialState = {
|
||||||
|
|
@ -766,9 +771,6 @@ describe('coverageStatement.vue', () => {
|
||||||
expect(wrapper.vm.mainStore.registerClaim).not.toHaveBeenCalled();
|
expect(wrapper.vm.mainStore.registerClaim).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
describe.skip('coverageStatement.vue-broken', () => {
|
|
||||||
describe('claim registration api call', () => {
|
describe('claim registration api call', () => {
|
||||||
it.only('claim registration required => register claim method called', async () => {
|
it.only('claim registration required => register claim method called', async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// Import Component
|
// Import Component
|
||||||
import { Form, defineRule } from 'vee-validate';
|
import { Form } from 'vee-validate';
|
||||||
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
||||||
import siteHeader from '@/iss-components/site-header/site-header.vue';
|
import siteHeader from '@/iss-components/site-header/site-header.vue';
|
||||||
import recalModal from '@/layouts/coverage-statement/recal-modal/recal-modal.vue';
|
import recalModal from '@/layouts/coverage-statement/recal-modal/recal-modal.vue';
|
||||||
|
|
@ -122,10 +122,6 @@ import globalRules from '@/constants/global-rules.js';
|
||||||
import baseFormMixin from '@/mixins/base-form-mixin.js';
|
import baseFormMixin from '@/mixins/base-form-mixin.js';
|
||||||
import navigationScenarios from '@/router/router-constants/navigation-scenarios.js';
|
import navigationScenarios from '@/router/router-constants/navigation-scenarios.js';
|
||||||
import routerParams from '@/router/router-constants/router-params';
|
import routerParams from '@/router/router-constants/router-params';
|
||||||
import { required } from '@/helpers/validation-rules';
|
|
||||||
import errorMessages from '@/constants/error-messages';
|
|
||||||
|
|
||||||
defineRule('option-required', required(errorMessages.OPTION_REQUIRED));
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'coverage-statement',
|
name: 'coverage-statement',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue