This commit is contained in:
@@ -48,6 +48,10 @@ CURRENT TODOs
|
|||||||
=-=-=-=-=-=-=
|
=-=-=-=-=-=-=
|
||||||
|
|
||||||
@@@@@@@@@@@ ROADMAP STAGE 2:
|
@@@@@@@@@@@ ROADMAP STAGE 2:
|
||||||
|
todo: global vue
|
||||||
|
- find all stuff defined in vue data objects as methods solely for the consumption of the template like translation (t()) and move to global vue object in main
|
||||||
|
- stuff not needed by templates should stay where it is in window
|
||||||
|
- Lodash might be an exception
|
||||||
|
|
||||||
todo: change all testing data-cy attributes to conditional see ay-customize for example
|
todo: change all testing data-cy attributes to conditional see ay-customize for example
|
||||||
- :data-cy="!!enableCypress ? item.key : false"
|
- :data-cy="!!enableCypress ? item.key : false"
|
||||||
|
|||||||
@@ -179,12 +179,20 @@ Vue.directive("focus", {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// INSTANTIATE
|
// INSTANTIATE
|
||||||
//
|
//
|
||||||
|
Vue.prototype.$ay = {
|
||||||
|
//development mode, this enables data-cy tags for testing, development level error messages etc
|
||||||
|
dev: true,
|
||||||
|
t: function(tKey) {
|
||||||
|
return translation.get(tKey);
|
||||||
|
}
|
||||||
|
};
|
||||||
new Vue({
|
new Vue({
|
||||||
vuetify: Vuetify,
|
vuetify: Vuetify,
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
render: h => h(App)
|
render: (h) => h(App)
|
||||||
}).$mount("#app");
|
}).$mount("#app");
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<template v-for="item in obj">
|
<template v-for="item in obj">
|
||||||
<v-col :key="item.key" cols="12" sm="6" lg="4" xl="3" px-2>
|
<v-col :key="item.key" cols="12" sm="6" lg="4" xl="3" px-2>
|
||||||
<v-card :data-cy="!!enableCypress ? item.key : false">
|
<v-card :data-cy="!!$ay.dev ? item.key : false">
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
<v-col cols="12" class="d-flex d-md-none">
|
<v-col cols="12" class="d-flex d-md-none">
|
||||||
<v-img :src="require('../assets/logo.svg')" contain height="64"></v-img>
|
<v-img :src="require('../assets/logo.svg')" contain height="64"></v-img>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
<template v-if="$ay.dev">
|
||||||
|
<v-col cols="12" offset="6">
|
||||||
|
<span class="title red--text">DEVELOPMENT MODE</span>
|
||||||
|
</v-col>
|
||||||
|
</template>
|
||||||
<v-col cols="12" offset-md="3">
|
<v-col cols="12" offset-md="3">
|
||||||
<form>
|
<form>
|
||||||
<v-row>
|
<v-row>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ describe("GZ-DATA-TABLE", () => {
|
|||||||
// .should("have.length", 10);
|
// .should("have.length", 10);
|
||||||
|
|
||||||
cy.get(".v-data-footer__select input:nth-child(2)").type("5{enter}", {
|
cy.get(".v-data-footer__select input:nth-child(2)").type("5{enter}", {
|
||||||
force: true,
|
force: true
|
||||||
});
|
});
|
||||||
|
|
||||||
//confirm 5 rows
|
//confirm 5 rows
|
||||||
|
|||||||
Reference in New Issue
Block a user