Skip to content
Snippets Groups Projects
Unverified Commit 85f50f38 authored by Acid Chicken (硫酸鶏)'s avatar Acid Chicken (硫酸鶏)
Browse files

build(#10336): use `toHaveTextContent`

parent 558d73b2
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment