Dashboard: unit tests related to rename resume

This commit is contained in:
gianantoniopini
2021-02-02 14:01:17 +01:00
parent 23386839a6
commit fd79891a1a
6 changed files with 237 additions and 20 deletions

View File

@ -133,21 +133,28 @@ async function setup(user) {
return userResumes;
}
async function setupAndWaitForLoadingScreenToDisappear(user) {
const userResumes = await _setup(user, true, false);
async function setupAndWait(user, waitForLoadingScreenToDisappear) {
const userResumes = await _setup(
user,
waitForLoadingScreenToDisappear,
false,
);
return userResumes;
}
async function setupWithFetchMockAndWaitForLoadingScreenToDisappear(user) {
const userResumes = await _setup(user, true, true);
async function setupWithFetchMockAndWait(
user,
waitForLoadingScreenToDisappear,
) {
const userResumes = await _setup(user, waitForLoadingScreenToDisappear, true);
return userResumes;
}
export default setup;
export {
setupAndWaitForLoadingScreenToDisappear,
setupWithFetchMockAndWaitForLoadingScreenToDisappear,
setupAndWait,
setupWithFetchMockAndWait,
waitForResumeToBeRenderedInPreview,
waitForResumeToDisappearFromPreview,
expectResumeToBeRenderedInPreview,