Merge branch 'develop' into SSR-348-site-header-unstick-2
This commit is contained in:
commit
dc23709a43
7 changed files with 66 additions and 19 deletions
|
|
@ -67,7 +67,7 @@
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div class="row form-test-error mt-1 px-5">
|
<div class="row form-test-error mt-1">
|
||||||
<error-message
|
<error-message
|
||||||
:name="formatString(groupName)"
|
:name="formatString(groupName)"
|
||||||
v-if="!suppressError"></error-message>
|
v-if="!suppressError"></error-message>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-for="(q, i) in questions" :key="i">
|
<div v-for="(q, i) in questions" :key="i" class="questionBlock" >
|
||||||
<transition appear name="fade" mode="out-in">
|
<transition appear name="fade" mode="out-in">
|
||||||
<buttonQuestion
|
<buttonQuestion
|
||||||
v-if="q.answerSelected || q.questionSequence === currentQuestionNum"
|
v-if="q.answerSelected || q.questionSequence === currentQuestionNum"
|
||||||
|
|
@ -161,3 +161,12 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
.questionBlock:not(:nth-of-type(1)){
|
||||||
|
.button-question.radioQuestion >div {
|
||||||
|
margin-top: 0.73rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
class="mt-0 body-text"
|
class="mt-0 body-text"
|
||||||
></div>
|
></div>
|
||||||
<shoppreferenceModal cmsWidgetName="ShopPreferenceDrawer" />
|
<shoppreferenceModal cmsWidgetName="ShopPreferenceDrawer" />
|
||||||
|
|
||||||
<buttonQuestion
|
<buttonQuestion
|
||||||
cmsWidgetName="ServiceLocationQuestion"
|
cmsWidgetName="ServiceLocationQuestion"
|
||||||
:questionText="questionText"
|
:questionText="questionText"
|
||||||
|
|
@ -140,19 +139,19 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#sub-header span{
|
#sub-header span{
|
||||||
color: #000000;
|
color: $black;
|
||||||
}
|
}
|
||||||
.body-text p{
|
.body-text {
|
||||||
margin-bottom: 0.5rem;
|
color: $darker-gray;
|
||||||
|
p, li {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
.body-text li{
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
}
|
||||||
.modal-link a{
|
.modal-link a{
|
||||||
color:#06577C;
|
color: $blue-700;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.question-text {
|
.question-text {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
|
||||||
32
src/layouts/service-location/service-location.spec.js
Normal file
32
src/layouts/service-location/service-location.spec.js
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
import { shallowMount } from "@vue/test-utils";
|
||||||
|
import { getMountOptions } from "@/helpers/unit-test-helper.js";
|
||||||
|
import serviceLocationModal from "@/layouts/service-location/service-location.vue";
|
||||||
|
|
||||||
|
describe("navigation", () => {
|
||||||
|
test("if the back button is clicked, navigate back", async () => {
|
||||||
|
// Arrange
|
||||||
|
|
||||||
|
const { wrapper } = setupMocks({
|
||||||
|
});
|
||||||
|
|
||||||
|
// Act
|
||||||
|
await wrapper.vm.backButtonAction();
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
expect(wrapper.vm.$router.navigate).toHaveBeenCalled();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function setupMocks()
|
||||||
|
{
|
||||||
|
const wrapper = shallowMount(
|
||||||
|
serviceLocationModal,
|
||||||
|
getMountOptions({
|
||||||
|
router: {
|
||||||
|
navigate: jest.fn(),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
|
return { wrapper };
|
||||||
|
}
|
||||||
|
|
@ -440,6 +440,16 @@ const routingTable = function(store) {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
issPageValue: issPageValues.SERVICE_LOCATION,
|
||||||
|
maps: [
|
||||||
|
{
|
||||||
|
scenario: navigationScenarios.CLICKED_BACK,
|
||||||
|
destinationIssPageValue: issPageValues.PROVIDER_PREFERENCE,
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -160,13 +160,6 @@ html {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vehicle-damage,
|
|
||||||
.vehicle-lookup {
|
|
||||||
.form-test-error {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0 .75rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-test-invalid {
|
.form-test-invalid {
|
||||||
&.btn.btn-primary {
|
&.btn.btn-primary {
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,9 @@ $orange: #fd7e14;
|
||||||
$teal: #20c997;
|
$teal: #20c997;
|
||||||
$cyan: #0dcaf0;
|
$cyan: #0dcaf0;
|
||||||
|
|
||||||
|
// Darker gray
|
||||||
|
$darker-gray: #525656;
|
||||||
|
|
||||||
// scss-docs-start colors-map
|
// scss-docs-start colors-map
|
||||||
$colors: (
|
$colors: (
|
||||||
"blue": $blue,
|
"blue": $blue,
|
||||||
|
|
@ -83,6 +86,7 @@ $colors: (
|
||||||
"white": $white,
|
"white": $white,
|
||||||
"gray": $gray,
|
"gray": $gray,
|
||||||
"gray-dark": $gray-500,
|
"gray-dark": $gray-500,
|
||||||
|
"darker-gray":$darker-gray,
|
||||||
);
|
);
|
||||||
|
|
||||||
// scss-docs-start theme-color-variables
|
// scss-docs-start theme-color-variables
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue