123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly: creator 1`] = `
- <tr>
- <td
- className="nowrap text-middle"
- >
- <div>
- <strong>
- johndoe
- </strong>
- </div>
- <div
- className="little-spacer-top"
- style={
- Object {
- "whiteSpace": "normal",
- }
- }
- >
- permission_templates.project_creators.explanation
- </div>
- </td>
- <PermissionCell
- key="admin"
- loading={Array []}
- onCheck={[Function]}
- permission={
- Object {
- "category": "admin",
- "permissions": Array [
- Object {
- "description": "",
- "key": "foo",
- "name": "Foo",
- },
- Object {
- "description": "",
- "key": "bar",
- "name": "Bar",
- },
- ],
- }
- }
- permissionItem={
- Object {
- "active": true,
- "local": true,
- "login": "<creator>",
- "name": "johndoe",
- "permissions": Array [
- "provisioning",
- ],
- }
- }
- selectedPermission="bar"
- />
- <PermissionCell
- key="baz"
- loading={Array []}
- onCheck={[Function]}
- permission={
- Object {
- "description": "",
- "key": "baz",
- "name": "Baz",
- }
- }
- permissionItem={
- Object {
- "active": true,
- "local": true,
- "login": "<creator>",
- "name": "johndoe",
- "permissions": Array [
- "provisioning",
- ],
- }
- }
- selectedPermission="bar"
- />
- </tr>
- `;
-
- exports[`should render correctly: default 1`] = `
- <tr>
- <td
- className="nowrap text-middle"
- >
- <div
- className="display-flex-center"
- >
- <withAppStateContext(Avatar)
- className="text-middle big-spacer-right flex-0"
- name="John Doe"
- size={36}
- />
- <div
- className="max-width-100"
- >
- <div
- className="max-width-100 text-ellipsis"
- >
- <strong>
- John Doe
- </strong>
- <span
- className="note spacer-left"
- >
- john.doe
- </span>
- </div>
- <div
- className="little-spacer-top max-width-100 text-ellipsis"
- >
- john.doe@sonarsource.com
- </div>
- </div>
- </div>
- </td>
- <PermissionCell
- key="admin"
- loading={Array []}
- onCheck={[Function]}
- permission={
- Object {
- "category": "admin",
- "permissions": Array [
- Object {
- "description": "",
- "key": "foo",
- "name": "Foo",
- },
- Object {
- "description": "",
- "key": "bar",
- "name": "Bar",
- },
- ],
- }
- }
- permissionItem={
- Object {
- "active": true,
- "email": "john.doe@sonarsource.com",
- "local": true,
- "login": "john.doe",
- "name": "John Doe",
- "permissions": Array [
- "provisioning",
- ],
- }
- }
- selectedPermission="bar"
- />
- <PermissionCell
- key="baz"
- loading={Array []}
- onCheck={[Function]}
- permission={
- Object {
- "description": "",
- "key": "baz",
- "name": "Baz",
- }
- }
- permissionItem={
- Object {
- "active": true,
- "email": "john.doe@sonarsource.com",
- "local": true,
- "login": "john.doe",
- "name": "John Doe",
- "permissions": Array [
- "provisioning",
- ],
- }
- }
- selectedPermission="bar"
- />
- </tr>
- `;
|