import { getLoginTarget } from "@buttercup/locust";

const TARGET_SEARCH_INTERVAL = 1500;

export function identifySelectedInput(inputElement) {
    const target = getLoginTarget();
    const { usernameFields, passwordFields } = target;
    if (usernameFields.includes(inputElement)) {
        return "username";
    } else if (passwordFields.includes(inputElement)) {
        return "password";
    }
    return null;
}

export function waitForTarget() {
    return new Promise(resolve => {
        const check = setInterval(() => {
            const target = getLoginTarget();
            if (target) {
                clearInterval(check);
                resolve(target);
            }
        }, TARGET_SEARCH_INTERVAL);
    });
}

@@ -4,26 +4,14 @@
 ort 
-%7B getLoginTarget %7D
+Locust
  fro
@@ -34,16 +34,52 @@
 cust%22;%0A%0A
+const %7B getLoginTarget %7D = Locust;%0A%0A
 const TA

Fix locust reference