web: restore test anchor tag (#8298)
* web: restore testability to search-select I don't know how this disappeared, but the 'data-managed-for' tag here helps the test harness find the right button to click when running the application wizard tests, among others. :wq. * prettier has opinions
This commit is contained in:
@ -175,6 +175,9 @@ export class SearchSelect<T> extends CustomEmitterElement(AKElement) {
|
|||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
this.dropdownContainer = document.createElement("div");
|
this.dropdownContainer = document.createElement("div");
|
||||||
this.dropdownContainer.dataset["managedBy"] = "ak-search-select";
|
this.dropdownContainer.dataset["managedBy"] = "ak-search-select";
|
||||||
|
if (this.name) {
|
||||||
|
this.dropdownContainer.dataset["managedFor"] = this.name;
|
||||||
|
}
|
||||||
document.body.append(this.dropdownContainer);
|
document.body.append(this.dropdownContainer);
|
||||||
this.updateData();
|
this.updateData();
|
||||||
this.addEventListener(EVENT_REFRESH, this.updateData);
|
this.addEventListener(EVENT_REFRESH, this.updateData);
|
||||||
|
Reference in New Issue
Block a user