f112_vorgang_operationen #41
@@ -100,4 +100,16 @@ describe('Seite: Vorgangsansicht', () => {
|
|||||||
expect(linkElement).toHaveAttribute('href', expectedURL);
|
expect(linkElement).toHaveAttribute('href', expectedURL);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('PIN Anzeige & Button', () => {
|
||||||
|
it('Teste korrekte Anzeige von PIN Komponente', () => {
|
||||||
|
const testData = { ...baseData};
|
||||||
|
render(TatortListPage, { props: { data: testData } });
|
||||||
|
const vorgObj = baseData.vorgangList[0]
|
||||||
|
|
||||||
|
// PIN is being displayed within ´NameItemEditor´
|
||||||
|
let label = screen.queryByText(vorgObj.vorgangPIN);
|
||||||
|
expect(label).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -171,4 +171,14 @@ describe('Hinzufügen Buton', () => {
|
|||||||
const result = await actions.default(event);
|
const result = await actions.default(event);
|
||||||
expect(result).toEqual({ token: testVorgangToken });
|
expect(result).toEqual({ token: testVorgangToken });
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('Vorgang-Operationen', () => {
|
||||||
|
it('Teste korrekte Anzeige von Vorgang-Input Komponente', () => {
|
||||||
|
const testData = { ...baseData};
|
||||||
|
const { getAllByTestId } = render(VorgangListPage, { props: { data: testData } });
|
||||||
|
|
||||||
|
let buttons = getAllByTestId('edit-button')
|
||||||
|
expect(buttons.length).toBeGreaterThan(1);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user