formatting
This commit is contained in:
parent
a940829a12
commit
61c0dbdf01
@ -172,10 +172,10 @@ const matchDropdown = (mut, testName, openOrClose) => {
|
|||||||
throw new Error(`"${openOrClose}" is not a valid value for openOrClose`);
|
throw new Error(`"${openOrClose}" is not a valid value for openOrClose`);
|
||||||
}
|
}
|
||||||
return mut.target.parentNode.parentNode.classList.contains(testName) &&
|
return mut.target.parentNode.parentNode.classList.contains(testName) &&
|
||||||
Array.from(nodes).some(
|
Array.from(nodes).some(
|
||||||
n => n.nodeType === Node.ELEMENT_NODE &&
|
n => n.nodeType === Node.ELEMENT_NODE &&
|
||||||
n.classList.contains("db-web-dropdown-outer-container"))
|
n.classList.contains("db-web-dropdown-outer-container"))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**@param {MutationRecord} mut */
|
/**@param {MutationRecord} mut */
|
||||||
const getDropdownList = (mut) => {
|
const getDropdownList = (mut) => {
|
||||||
@ -318,13 +318,13 @@ const enterTitleAndActivateCountryDropdown = {
|
|||||||
/**@param {MutationRecord} mut */
|
/**@param {MutationRecord} mut */
|
||||||
execute: mut => {
|
execute: mut => {
|
||||||
ensureSettingsProp("addr__title", v => {
|
ensureSettingsProp("addr__title", v => {
|
||||||
const selectList = getDropdownList(mut);
|
const selectList = getDropdownList(mut);
|
||||||
selectList.querySelector(`[data-value=${v}]`).dispatchEvent(_clickEv());
|
selectList.querySelector(`[data-value=${v}]`).dispatchEvent(_clickEv());
|
||||||
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
||||||
}, () => {
|
}, () => {
|
||||||
getDropdownCloseButton(mut).dispatchEvent(_clickEv());
|
getDropdownCloseButton(mut).dispatchEvent(_clickEv());
|
||||||
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user