123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly: can create branches 1`] = `
- <div
- className="app-branches-console"
- >
- <div
- className="boxed-group-actions"
- >
- <Button
- disabled={false}
- onClick={[Function]}
- >
- application_console.branches.create
- </Button>
- </div>
- <h2
- className="text-limited big-spacer-top"
- title="application_console.branches"
- >
- application_console.branches
- </h2>
- <p>
- application_console.branches.help
- </p>
- <div
- className="app-branches-list"
- >
- <table
- className="data zebra"
- >
- <tbody>
- <ApplicationProjectBranch
- application={
- Object {
- "branches": Array [
- Object {
- "analysisDate": "2018-01-01",
- "excludedFromPurge": true,
- "isMain": false,
- "name": "branch-6.7",
- },
- ],
- "key": "foo",
- "name": "Foo",
- "projects": Array [
- Object {
- "branch": "master",
- "enabled": true,
- "isMain": true,
- "key": "bar",
- "name": "Bar",
- },
- ],
- "visibility": "private",
- }
- }
- branch={
- Object {
- "analysisDate": "2018-01-01",
- "excludedFromPurge": true,
- "isMain": false,
- "name": "branch-6.7",
- }
- }
- key="branch-6.7"
- onUpdateBranches={[MockFunction]}
- />
- </tbody>
- </table>
- </div>
- </div>
- `;
-
- exports[`should render correctly: creating branch 1`] = `
- <div
- className="app-branches-console"
- >
- <div
- className="boxed-group-actions"
- >
- <Button
- disabled={true}
- onClick={[Function]}
- >
- application_console.branches.create
- </Button>
- </div>
- <h2
- className="text-limited big-spacer-top"
- title="application_console.branches"
- >
- application_console.branches
- </h2>
- <p>
- application_console.branches.help
- </p>
- <div
- className="app-branches-list"
- >
- <p
- className="text-center big-spacer-top"
- >
- application_console.branches.no_branches
- </p>
- </div>
- <CreateBranchForm
- application={
- Object {
- "branches": Array [
- Object {
- "analysisDate": "2018-01-01",
- "excludedFromPurge": true,
- "isMain": false,
- "name": "branch-6.7",
- },
- ],
- "key": "foo",
- "name": "Foo",
- "projects": Array [
- Object {
- "branch": "master",
- "isMain": true,
- "key": "bar",
- "name": "Bar",
- },
- ],
- "visibility": "private",
- }
- }
- enabledProjectsKey={
- Array [
- "bar",
- ]
- }
- onClose={[Function]}
- onCreate={[Function]}
- onUpdate={[Function]}
- />
- </div>
- `;
-
- exports[`should render correctly: default 1`] = `
- <div
- className="app-branches-console"
- >
- <div
- className="boxed-group-actions"
- >
- <Button
- disabled={true}
- onClick={[Function]}
- >
- application_console.branches.create
- </Button>
- </div>
- <h2
- className="text-limited big-spacer-top"
- title="application_console.branches"
- >
- application_console.branches
- </h2>
- <p>
- application_console.branches.help
- </p>
- <div
- className="app-branches-list"
- >
- <p
- className="text-center big-spacer-top"
- >
- application_console.branches.no_branches
- </p>
- </div>
- </div>
- `;
|