Skip to content

Commit d3ca93f

Browse files
committed
fix(ui5-tokenizer): sync popover list items with token text changes
fix test
1 parent 4a9902f commit d3ca93f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/main/cypress/specs/Tokenizer.cy.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,8 @@ describe("Tokenizer - Popover List Item Text Updates", () => {
281281
.eq(1)
282282
.should("have.attr", "text", "Token 2");
283283

284-
cy.get<Token>("[ui5-token]").then($token => {
285-
const token = $token.get(0) as Token;
286-
token.text = "Modified Token 1";
287-
});
288-
289-
cy.get<Token>("[ui5-token]").then($token => {
290-
const token = $token.get(0) as Token;
291-
token.text = "Modified Token 2";
292-
});
284+
cy.get<Token>("[ui5-token]").eq(0).invoke("prop", "text", "Modified Token 1");
285+
cy.get<Token>("[ui5-token]").eq(1).invoke("prop", "text", "Modified Token 2");
293286

294287
cy.get<Tokenizer>("[ui5-tokenizer]")
295288
.shadow()

0 commit comments

Comments
 (0)