if (await (await page.getByText('خطا در برقراری ارتباط').elementHandles()).length > 0) { await expect(page.getByTestId('status')).toHaveText('خطا در برقراری ارتباط'); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter