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`);
|
||||
}
|
||||
return mut.target.parentNode.parentNode.classList.contains(testName) &&
|
||||
Array.from(nodes).some(
|
||||
n => n.nodeType === Node.ELEMENT_NODE &&
|
||||
n.classList.contains("db-web-dropdown-outer-container"))
|
||||
}
|
||||
Array.from(nodes).some(
|
||||
n => n.nodeType === Node.ELEMENT_NODE &&
|
||||
n.classList.contains("db-web-dropdown-outer-container"))
|
||||
}
|
||||
|
||||
/**@param {MutationRecord} mut */
|
||||
const getDropdownList = (mut) => {
|
||||
@ -318,13 +318,13 @@ const enterTitleAndActivateCountryDropdown = {
|
||||
/**@param {MutationRecord} mut */
|
||||
execute: mut => {
|
||||
ensureSettingsProp("addr__title", v => {
|
||||
const selectList = getDropdownList(mut);
|
||||
selectList.querySelector(`[data-value=${v}]`).dispatchEvent(_clickEv());
|
||||
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
||||
}, () => {
|
||||
getDropdownCloseButton(mut).dispatchEvent(_clickEv());
|
||||
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
||||
}
|
||||
const selectList = getDropdownList(mut);
|
||||
selectList.querySelector(`[data-value=${v}]`).dispatchEvent(_clickEv());
|
||||
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
||||
}, () => {
|
||||
getDropdownCloseButton(mut).dispatchEvent(_clickEv());
|
||||
$(".test-adresse-land.db-web-select button").dispatchEvent(_clickEv());
|
||||
}
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user