console logi
This commit is contained in:
@@ -22,20 +22,10 @@ test('input should display default placeholder for student', async () => {
|
||||
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
|
||||
setTimeout(()=>{const input = getByPlaceholderText('Wyszukaj przedmioty...');
|
||||
expect(input).toBeInTheDocument();},2000);
|
||||
// fireEvent.change(input, { target: { value: '122' } });
|
||||
// console.log(debug());
|
||||
// const textNode = await waitForElement(() => getByText('asdasdsa'));
|
||||
// console.log(debug());
|
||||
|
||||
});
|
||||
|
||||
test('input should display changed value', async () => {
|
||||
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
|
||||
setTimeout(()=>{ const input = getByPlaceholderText('Wyszukaj przedmioty...');
|
||||
fireEvent.change(input, { target: { value: '122' } });expect(input.value).toBe("122");},2000);
|
||||
|
||||
|
||||
// console.log(debug());
|
||||
// console.log(debug());
|
||||
|
||||
fireEvent.change(input, { target: { value: '122' } });expect(input.value).toBe("122");},2000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user