🌈 搜索
📅  最后修改于: 2022-03-11 15:03:17.932000             🧑  作者: Mango
expect(screen.getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')