forked from inspirehep/inspirehep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
668 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ django-setup: | |
docker compose exec backoffice-webserver python manage.py create_groups | ||
docker compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/users.json | ||
docker compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/tokens.json | ||
docker compose exec backoffice-webserver python manage.py loaddata backoffice/authors/fixtures/workflows.json | ||
echo "\033[1;32memail: [email protected] / password: admin \033[0m" | ||
echo "Backoffice initialized" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
{ | ||
"model": "authors.authorworkflow", | ||
"pk": "00000000-0000-0000-0000-000000001521", | ||
"fields": { | ||
"workflow_type": "AUTHOR_CREATE", | ||
"data": { | ||
"name": { | ||
"value": "B, Third", | ||
"preferred_name": "Third B" | ||
}, | ||
"status": "active", | ||
"_collections": [ | ||
"Authors" | ||
], | ||
"acquisition_source": { | ||
"email": "[email protected]", | ||
"orcid": "0000-0000-0000-0000", | ||
"method": "submitter", | ||
"source": "submitter", | ||
"datetime": "2024-11-18T11:34:19.809575", | ||
"internal_uid": 50872 | ||
} | ||
}, | ||
"status": "running", | ||
"_created_at": "2024-11-25T13:49:53.009Z", | ||
"_updated_at": "2024-11-25T13:49:54.756Z" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
ui/src/submissions/data/containers/__tests__/ExperimentSubmissionPageContainer.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import { mount, shallow } from 'enzyme'; | ||
import { Provider } from 'react-redux'; | ||
import { MemoryRouter } from 'react-router-dom'; | ||
import { fromJS } from 'immutable'; | ||
|
||
import ExperimentSubmissionPageContainer, { ExperimentSubmissionPage } from '../DataSubmissionPageContainer'; | ||
|
||
import { getStoreWithState } from '../../../../fixtures/store'; | ||
|
||
describe('ExperimentSubmissionSuccessPageContainer', () => { | ||
it('passes props to ExperimentSubmissionSucessPage', () => { | ||
const store = getStoreWithState({ | ||
submissions: fromJS({ | ||
submitError: null, | ||
}), | ||
}); | ||
const wrapper = mount( | ||
<Provider store={store}> | ||
<MemoryRouter> | ||
<ExperimentSubmissionPageContainer /> | ||
</MemoryRouter> | ||
</Provider> | ||
); | ||
expect(wrapper.find(ExperimentSubmissionPage)).toHaveProp({ | ||
error: null, | ||
}); | ||
}); | ||
|
||
describe('ExperimentSubmissionSucessPage', () => { | ||
it('renders', () => { | ||
const component = shallow( | ||
<ExperimentSubmissionPage error={null} onSubmit={() => {}} /> | ||
); | ||
expect(component).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.