fix(#248): replace document.querySelectorAll with page.getByRole in TagDeleteGuard spec
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,8 +17,10 @@ const allTags = [
|
|||||||
describe('TagDeleteGuard', () => {
|
describe('TagDeleteGuard', () => {
|
||||||
it('renders two radio options (single and subtree)', async () => {
|
it('renders two radio options (single and subtree)', async () => {
|
||||||
render(TagDeleteGuard, { tag, allTags });
|
render(TagDeleteGuard, { tag, allTags });
|
||||||
const radios = document.querySelectorAll<HTMLInputElement>('input[type="radio"]');
|
await expect.element(page.getByRole('radio', { name: /Nur dieses/i })).toBeInTheDocument();
|
||||||
expect(radios.length).toBe(2);
|
await expect
|
||||||
|
.element(page.getByRole('radio', { name: /Gesamten Teilbaum/i }))
|
||||||
|
.toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('delete button is disabled initially', async () => {
|
it('delete button is disabled initially', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user