brought over custom mixins for button gradient, added links to google fonts to fix font-weight issue, finished tests vehicle make.

This commit is contained in:
Jason Wheeler 2022-11-01 14:44:57 -04:00
parent 5eb899c080
commit 5606f41432
8 changed files with 22 additions and 32 deletions

View file

@ -9,6 +9,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>

View file

@ -225,7 +225,7 @@
margin-top: 1.5rem;
margin-bottom: 1rem;
font-size: 1rem;
line-height: 1.625rem;
line-height: 1.5rem;
& > span {
text-align: center;

View file

@ -33,7 +33,7 @@ export function getMountOptions(mockData) {
mocks.vehicleCategories = vehicleCategories;
mocks.issPageValues = issPageValues;
mocks.queryStrings = queryStrings;
mocks.$router = mockData?.router;
const global = {
mocks: mocks,

View file

@ -21,6 +21,7 @@ jest.mock("@/helpers/layout-helper.js", () => ({
}));
describe("vehicle-make.vue", () => {
test("Make question component is initized with api data", async () => {
//Arrange
const makeQuestionInitialData = ["honda", "ford", "dodge"];
@ -43,10 +44,8 @@ describe("vehicle-make.vue", () => {
);
});
});
});
/*
describe("vehicle-make.vue", () => {
test("BackButtonAction triggers a router.navigateWithoutSaving change", async (done) => {
test("BackButtonAction triggers a router.navigate change", async () => {
//Arrange
const { wrapper, apiPromise } = setupMocks({
pageHeaderWidgetHeaderText: "Select a make to get started",
@ -70,31 +69,10 @@ describe("vehicle-make.vue", () => {
//Assert
apiPromise.finally(() => {
expect(wrapper.vm.$router.navigate).toHaveBeenCalled();
done();
});
});
});
describe("vehicle-make.vue", () => {
test("Year set, arePagePrerequisitesValid should be true ", async () => {
//Arrange
const { wrapper } = setupMocks({});
//Act
vehicleMake.beforeRouteEnter.call(
wrapper.vm,
{ query: { issPage: "vehicle-make" } },
undefined,
(c) => c(wrapper.vm)
);
let arePagePrerequisitesValid = wrapper.vm.arePagePrerequisitesValid();
//Assert
expect(arePagePrerequisitesValid).toBe(true);
});
});
*/
function setupMocks({
vehicleMakeQuestionCmsContent = {},

View file

@ -35,7 +35,7 @@ const routingTable = function(store) {
maps: [
{
scenario: navigationScenarios.CLICKED_FORWARD,
destinationIssPageValue: issPageValues.VEHICLE_MAKE,
destinationIssPageValue: issPageValues.VEHICLE_YEAR,
},
{
scenario: navigationScenarios.CLICKED_TEST,

View file

@ -0,0 +1,6 @@
//Custom Mixins
//Blue gradient background mixin
@mixin blue-gradient {
background: linear-gradient(270deg, $blue 0%, $blue-800 100%);
}

View file

@ -19,6 +19,7 @@ module.exports = {
@import "@/styles/ux-variables.scss";
@import "./node_modules/bootstrap/scss/variables";
@import "./node_modules/bootstrap/scss/mixins";
@import "@/styles/mixins/customMixins";
`,
},
},

View file

@ -17,6 +17,7 @@ module.exports = {
@import "@/styles/ux-variables.scss";
@import "./node_modules/bootstrap/scss/variables";
@import "./node_modules/bootstrap/scss/mixins";
@import "@/styles/mixins/customMixins";
`,
},
},