diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2023-03-31 16:36:43 +0900 |
|---|---|---|
| committer | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2023-03-31 16:36:43 +0900 |
| commit | 85f50f38756c627d06ed15f464f469c74c9deedb (patch) | |
| tree | 3fbfc396d055e0432046b1caca91708c8aa4c2ab /packages/frontend/src/components/global | |
| parent | build(#10336): fix missing type definition (diff) | |
| download | misskey-85f50f38756c627d06ed15f464f469c74c9deedb.tar.gz misskey-85f50f38756c627d06ed15f464f469c74c9deedb.tar.bz2 misskey-85f50f38756c627d06ed15f464f469c74c9deedb.zip | |
build(#10336): use `toHaveTextContent`
Diffstat (limited to 'packages/frontend/src/components/global')
| -rw-r--r-- | packages/frontend/src/components/global/MkAd.stories.impl.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/global/MkAd.stories.impl.ts b/packages/frontend/src/components/global/MkAd.stories.impl.ts index 767f8c691b..436744b4f6 100644 --- a/packages/frontend/src/components/global/MkAd.stories.impl.ts +++ b/packages/frontend/src/components/global/MkAd.stories.impl.ts @@ -44,10 +44,10 @@ const common = { const back = buttons[args.__hasReduce ? 1 : 0]; if (reduce) { await expect(reduce).toBeInTheDocument(); - await expect(reduce.textContent).toBe(i18n.ts._ad.reduceFrequencyOfThisAd); + await expect(reduce).toHaveTextContent(i18n.ts._ad.reduceFrequencyOfThisAd); } await expect(back).toBeInTheDocument(); - await expect(back.textContent).toBe(i18n.ts._ad.back); + await expect(back).toHaveTextContent(i18n.ts._ad.back); await userEvent.click(back); if (reduce) { await expect(reduce).not.toBeInTheDocument(); |