use the util functions
This commit is contained in:
parent
d21941d306
commit
d5f44954b9
@ -333,12 +333,7 @@ const enterTitleAndActivateCountryDropdown = {
|
|||||||
const enterCountry = {
|
const enterCountry = {
|
||||||
name: "enterCountry",
|
name: "enterCountry",
|
||||||
expects: "mutation",
|
expects: "mutation",
|
||||||
match: mutation => {
|
match: mut => matchDropdown(mut, "test-adresse-land", "open"),
|
||||||
return mutation.target.parentNode.parentNode.classList.contains("test-adresse-land") &&
|
|
||||||
Array.from(mutation.addedNodes).some(
|
|
||||||
n => n.nodeType === Node.ELEMENT_NODE &&
|
|
||||||
n.classList.contains("db-web-dropdown-outer-container"))
|
|
||||||
},
|
|
||||||
execute: () => {
|
execute: () => {
|
||||||
ensureSettingsProp("addr__country", v => {
|
ensureSettingsProp("addr__country", v => {
|
||||||
const selectList = $(".test-adresse-land ul");
|
const selectList = $(".test-adresse-land ul");
|
||||||
@ -354,13 +349,8 @@ const enterCountry = {
|
|||||||
const enterTextPersonalData = {
|
const enterTextPersonalData = {
|
||||||
name: "enterTextPersonalData",
|
name: "enterTextPersonalData",
|
||||||
expects: 'mutation',
|
expects: 'mutation',
|
||||||
/** @param {MutationRecord} mutation */
|
/** @param {MutationRecord} mut */
|
||||||
match: mutation => {
|
match: mut => matchDropdown(mut, "test-name-titel", "close"),
|
||||||
return (mutation.target.parentNode.parentNode.classList.contains("test-name-titel") &&
|
|
||||||
Array.from(mutation.removedNodes).some(
|
|
||||||
n => n.nodeType === Node.ELEMENT_NODE &&
|
|
||||||
n.classList.contains("db-web-dropdown-outer-container")))
|
|
||||||
},
|
|
||||||
execute: () => {
|
execute: () => {
|
||||||
let node = document;
|
let node = document;
|
||||||
let delay = 100;
|
let delay = 100;
|
||||||
|
Loading…
Reference in New Issue
Block a user