Przeglądaj źródła

fixed unit tests

pull/183/head
Dzenis Hadzifejzovic 3 lat temu
rodzic
commit
d6a1849c92
2 zmienionych plików z 4 dodań i 11 usunięć
  1. 1
    1
      package.json
  2. 3
    10
      src/__tests__/UITests/candidateFilterUI.test.js

+ 1
- 1
package.json Wyświetl plik

"yup": "^0.32.9" "yup": "^0.32.9"
}, },
"scripts": { "scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject", "eject": "react-scripts eject",

+ 3
- 10
src/__tests__/UITests/candidateFilterUI.test.js Wyświetl plik

isChecked: true, isChecked: true,
}, },
], ],
startingDate: "",
endingDate: "",
typesOfEmployments: [],
}; };


const cont = ( const cont = (
expect(btn).toBeDefined(); expect(btn).toBeDefined();
}); });
}); });

it("Should change ending date", async () => {
render(cont);
const input = screen.getByTestId("filter-date-container-ending-date");

waitFor(() => {
fireEvent.change(input, { target: { value: "2024-05-24" } });
expect(input).toBeDefined();
});
});
}); });

Ładowanie…
Anuluj
Zapisz