started nav-button

This commit is contained in:
Jason Wheeler 2022-09-20 10:26:30 -04:00
parent 243cc0406f
commit 200b4bb141
5 changed files with 61 additions and 5 deletions

View file

@ -0,0 +1,29 @@
<template>
<input type="button" class="nav-button" v-bind:value="text"/>
</template>
<script>
export default({
name: "nav-button",
props: {
text: String,
scenario: String,
},
methods: {
navTo(){
}
}
})
</script>
<style lang="scss" scoped>
.nav-button {
background-color: lightgray;
padding: 2.5px;
border-radius: 5px;
min-width: 70px;
}
</style>

View file

@ -0,0 +1,22 @@
import axios from 'axios';
import './global-methods.js';
/*
jest.mock('axios');
test('should fetch users', () => {
const users = [{name: 'Bob'}];
const resp = {data: users};
axios.get.mockResolvedValue(resp);
// or you could use the following depending on your use case:
// axios.get.mockImplementation(() => Promise.resolve(resp))
return Users.all().then(data => expect(data).toEqual(users));
});
*/
test('adds 1 + 2 to equal 3', () => {
expect(1 + 2).toBe(3);
});

View file

@ -1,11 +1,16 @@
<template>
<p>Welcome Page Placeholder</p>
<br />
<NavButton text="Next"></NavButton>
</template>
<script>
import NavButton from "../../common-components/nav-button/nav-button.vue";
export default {
name: 'welcome-page'
}
name: "welcome-page",
components: { NavButton }
}
</script>
<style scoped>

View file

@ -16,7 +16,7 @@ const routes = [
if(issPage === undefined)
{
issPage = issPageValues.issPageValues["WELCOME_PAGE"];
issPage = issPageValues.issPageValues.WELCOME_PAGE;
}
if (router.hasRoute(issPage)) {

View file

@ -5,7 +5,7 @@ import { navigationScenarios } from "@/router/router-constants/navigation-scenar
const routingTable = function(store) {
return [
{
issPageValue: issPageValues.VEHICLE_MAKE,
issPageValue: issPageValues.VEHICLE_YEAR,
maps: [
{
scenario: navigationScenarios.CLICKED_BACK,
@ -18,7 +18,7 @@ const routingTable = function(store) {
maps: [
{
scenario: navigationScenarios.CLICKED_FORWARD,
issPageValue: "VEHICLE_MAKE"
issPageValue: "VEHICLE_YEAR"
}
]
}