CSR-762 WIP
This commit is contained in:
parent
fe9602200c
commit
7cdb291641
3 changed files with 19 additions and 9 deletions
|
|
@ -249,8 +249,16 @@ describe("baseInputButton.vue", () => {
|
||||||
describe("handleEventAction", () => {});
|
describe("handleEventAction", () => {});
|
||||||
|
|
||||||
describe("handleSelectionChange", () => {
|
describe("handleSelectionChange", () => {
|
||||||
|
test.todo("handleChange is called with valueToEmit")
|
||||||
|
|
||||||
describe("checkbox", () => {
|
describe("checkbox", () => {
|
||||||
test.todo("modelValue is null => inputButtonClicked is emitted with correct")
|
test.todo("modelValue is null => valueToEmit is correct value")
|
||||||
|
|
||||||
|
test.todo("modelValue is undefined => valueToEmit is correct value")
|
||||||
|
test.todo("modelValue is empty => valueToEmit is correct value")
|
||||||
|
|
||||||
|
test.todo("modelValue is not empty and does not contain this button's value => valueToEmit is correct value")
|
||||||
|
test.todo("modelValue is not empty and does contain this button's value => valueToEmit is correct value")
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("radio", () => {
|
describe("radio", () => {
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ export default {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case eventTypes.CLICK:
|
case eventTypes.CLICK: // TODO KO pushClickEventToGa?
|
||||||
case eventTypes.ENTER:
|
case eventTypes.ENTER:
|
||||||
case eventTypes.SPACE:
|
case eventTypes.SPACE:
|
||||||
this.handleClick(e);
|
this.handleClick(e);
|
||||||
|
|
@ -141,13 +141,13 @@ export default {
|
||||||
handleClick(e) {
|
handleClick(e) {
|
||||||
this.handleSelectionChange(e);
|
this.handleSelectionChange(e);
|
||||||
// console.log("addEventToBus: ", this.value?.toString())
|
// console.log("addEventToBus: ", this.value?.toString())
|
||||||
// eventBus.addEventToBus("GA", "click", {
|
eventBus.addEventToBus("GA", "click", {
|
||||||
// category: this.$route.query[queryStrings.FMG_PAGE],
|
category: this.$route.query[queryStrings.FMG_PAGE],
|
||||||
// action: this.GaActions.CLICKED,
|
action: this.GaActions.CLICKED,
|
||||||
// label: this.value?.toString(),
|
label: this.value?.toString(),
|
||||||
// pushToLogApp: true,
|
pushToLogApp: true,
|
||||||
// valueToLogType: this.valueToLogType,
|
valueToLogType: this.valueToLogType,
|
||||||
// });
|
});
|
||||||
this.$emit("inputButtonClicked", this.valueToEmit);
|
this.$emit("inputButtonClicked", this.valueToEmit);
|
||||||
},
|
},
|
||||||
// pushClickEventToGA(value) {
|
// pushClickEventToGA(value) {
|
||||||
|
|
|
||||||
|
|
@ -262,11 +262,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleFocus(e) {
|
handleFocus(e) {
|
||||||
|
console.log("B")
|
||||||
this.$root.handleInputFocus({
|
this.$root.handleInputFocus({
|
||||||
groupName: this.groupName,
|
groupName: this.groupName,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleBlur(e) {
|
handleBlur(e) {
|
||||||
|
console.log("A")
|
||||||
this.$root.handleInputBlur({
|
this.$root.handleInputBlur({
|
||||||
groupName: this.groupName,
|
groupName: this.groupName,
|
||||||
onFocusCallback: this.onFocusCallbackForRoot,
|
onFocusCallback: this.onFocusCallbackForRoot,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue