Skip to content

Commit

Permalink
playwright環境で失敗するテストを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
oki07 committed Nov 26, 2024
1 parent 5989421 commit 282f273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/definitionList/sp-definition-list-dd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("sp-definition-list-dd", () => {

const definitionList = getSpDefinitionListDd();
expect(definitionList.innerHTML).toBe("Description<br>Description");
expect(definitionList.innerText).toBe(`DescriptionDescription`);
expect(definitionList.innerText).toBe("Description\nDescription");
});

test("子要素に何も入れない場合、何も表示されない", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/definitionList/sp-definition-list-dt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("sp-definition-list-dt", () => {

const definitionList = getSpDefinitionListDt();
expect(definitionList.innerHTML).toBe("Term<br>Term");
expect(definitionList.innerText).toBe(`TermTerm`);
expect(definitionList.innerText).toBe("Term\nTerm");
});

test("子要素に何も入れない場合、何も表示されない", async () => {
Expand Down

0 comments on commit 282f273

Please sign in to comment.