123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly 1`] = `
- <div
- className="page-header"
- >
- <div
- className="display-flex-space-between spacer-top"
- >
- <SearchFilterContainer
- onQueryChange={[MockFunction]}
- query={
- Object {
- "search": "test",
- }
- }
- />
- <div
- className="display-flex-center"
- >
- <withCurrentUserContext(ProjectCreationMenu)
- className="little-spacer-right"
- />
- <withCurrentUserContext(withRouter(withAppStateContext(ApplicationCreation)))
- className="little-spacer-right"
- />
- <withCurrentUserContext(HomePageSelect)
- className="spacer-left little-spacer-right"
- currentPage={
- Object {
- "type": "PROJECTS",
- }
- }
- />
- </div>
- </div>
- <div
- className="big-spacer-top display-flex-space-between"
- >
- <div
- className="display-flex-center"
- >
- <span
- className="projects-total-label"
- >
- <strong
- id="projects-total"
- >
- 12
- </strong>
-
- projects_
- </span>
- </div>
- <div
- className="display-flex-center"
- >
- <PerspectiveSelect
- className="projects-topbar-item"
- onChange={[MockFunction]}
- view="overall"
- />
- <div
- className="projects-topbar-item"
- >
- <ProjectsSortingSelect
- defaultOption="analysis_date"
- onChange={[MockFunction]}
- selectedSort="size"
- view="overall"
- />
- </div>
- </div>
- </div>
- </div>
- `;
-
- exports[`should render correctly while loading 1`] = `
- <div
- className="page-header"
- >
- <div
- className="display-flex-space-between spacer-top"
- >
- <SearchFilterContainer
- onQueryChange={[MockFunction]}
- query={
- Object {
- "search": "test",
- }
- }
- />
- <div
- className="display-flex-center"
- >
- <withCurrentUserContext(ProjectCreationMenu)
- className="little-spacer-right"
- />
- <withCurrentUserContext(withRouter(withAppStateContext(ApplicationCreation)))
- className="little-spacer-right"
- />
- <withCurrentUserContext(HomePageSelect)
- className="spacer-left little-spacer-right"
- currentPage={
- Object {
- "type": "PROJECTS",
- }
- }
- />
- </div>
- </div>
- <div
- className="big-spacer-top display-flex-space-between"
- >
- <div
- className="display-flex-center is-loading"
- >
- <span
- className="projects-total-label"
- >
- <strong
- id="projects-total"
- >
- 2
- </strong>
-
- projects_
- </span>
- </div>
- <div
- className="display-flex-center"
- >
- <PerspectiveSelect
- className="projects-topbar-item"
- onChange={[MockFunction]}
- view="overall"
- />
- <div
- className="projects-topbar-item"
- >
- <ProjectsSortingSelect
- defaultOption="analysis_date"
- onChange={[MockFunction]}
- selectedSort="size"
- view="overall"
- />
- </div>
- </div>
- </div>
- </div>
- `;
-
- exports[`should render switch the default sorting option for anonymous users 1`] = `
- <ProjectsSortingSelect
- defaultOption="name"
- onChange={[MockFunction]}
- selectedSort="size"
- view="overall"
- />
- `;
-
- exports[`should render switch the default sorting option for anonymous users 2`] = `
- <ProjectsSortingSelect
- defaultOption="analysis_date"
- onChange={[MockFunction]}
- selectedSort="size"
- view="leak"
- />
- `;
|