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