Skip to content

Commit a9edc74

Browse files
authored
fix(ui5-multi-combobox): Fix failing test (#3366)
1 parent e7c4900 commit a9edc74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/main/test/specs/MultiComboBox.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,13 @@ describe("MultiComboBox general interaction", () => {
286286
assert.strictEqual(innerInput.getAttribute("aria-describedby"), ariaDescribedBy, "aria-describedby has a reference for the value state and the tokens count");
287287
});
288288

289-
/*
290289
it ("aria-describedby value according to the tokens count", () => {
291290
const mcb = $("#mcb-compact");
292291

293292
mcb.scrollIntoView();
294-
browser.pause(500);
295293

296294
const innerInput = mcb.shadow$("input");
297-
const invisibleText = mcb.shadow$(".ui5-hidden-text");
295+
let invisibleText = mcb.shadow$(".ui5-hidden-text");
298296
const inivisbleTextId = invisibleText.getProperty("id");
299297
let tokens = mcb.shadow$$(".ui5-multi-combobox-token");
300298
let resourceBundleText = null;
@@ -308,6 +306,7 @@ describe("MultiComboBox general interaction", () => {
308306
innerInput.keys("Backspace");
309307

310308
tokens = mcb.shadow$$(".ui5-multi-combobox-token");
309+
invisibleText = mcb.shadow$(".ui5-hidden-text");
311310

312311
resourceBundleText = browser.execute(() => {
313312
const mcb = document.getElementById("mcb-compact");
@@ -320,6 +319,8 @@ describe("MultiComboBox general interaction", () => {
320319
innerInput.keys("Backspace");
321320

322321
tokens = mcb.shadow$$(".ui5-multi-combobox-token");
322+
invisibleText = mcb.shadow$(".ui5-hidden-text");
323+
323324
resourceBundleText = browser.execute(() => {
324325
const mcb = document.getElementById("mcb-compact");
325326
return mcb.i18nBundle.getText(window["sap-ui-webcomponents-bundle"].defaultTexts.TOKENIZER_ARIA_CONTAIN_TOKEN);
@@ -328,6 +329,5 @@ describe("MultiComboBox general interaction", () => {
328329
assert.strictEqual(tokens.length, 0, "should not have tokens");
329330
assert.strictEqual(invisibleText.getText(), resourceBundleText, "aria-describedby text is correct");
330331
});
331-
*/
332332
});
333333
});

0 commit comments

Comments
 (0)