fix: preserve nested search names and add browser consumption fixture
This commit is contained in:
@@ -644,13 +644,13 @@ describe("Autocomplete form and validation", () => {
|
||||
});
|
||||
|
||||
describe("Autocomplete composition", () => {
|
||||
it("keeps a caller-provided aria-label on the trigger and search box", async () => {
|
||||
it("keeps separate caller-provided names on the trigger and inner SearchField", async () => {
|
||||
track(shell({}));
|
||||
await nextTick();
|
||||
await settle();
|
||||
expect(trigger().getAttribute("aria-label")).toBe("州");
|
||||
await open();
|
||||
expect(search().getAttribute("aria-label")).toBe("州");
|
||||
expect(search().getAttribute("aria-label")).toBe("搜索州名");
|
||||
});
|
||||
|
||||
it("mounts as a reusable component surface", async () => {
|
||||
|
||||
Reference in New Issue
Block a user