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;
|
||||
}
|
||||
@ -394,7 +394,7 @@ const continueToPayout = {
|
||||
name: "continueToPayout",
|
||||
expects: "mutation",
|
||||
match: () => Object.is(
|
||||
document.activeElement,
|
||||
document.activeElement,
|
||||
$(".fahrgastrechte-editable__buttons button.fahrgastrechte-continue-button")
|
||||
),
|
||||
execute: () => document.activeElement.dispatchEvent(_clickEv()),
|
||||
@ -426,7 +426,7 @@ const enterPaymentDetails = {
|
||||
}
|
||||
const defaultStages = [
|
||||
startClaim, fillData, clickContinue,
|
||||
iWasDelayed, moreThan60Minutes, continueToForm,
|
||||
iWasDelayed, moreThan60Minutes, continueToForm,
|
||||
focusDepartureInput, jumpToTimeInput,
|
||||
activateAppellationDropdown, enterAppellationAndActivateTitleDropdown,
|
||||
enterTitleAndActivateCountryDropdown, enterCountry,
|
||||
|
Loading…
Reference in New Issue
Block a user