123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`Render should render component 1`] = `
- <div>
- <div
- className="page-action-bar"
- >
- <div
- className="gf-form gf-form--grow"
- >
- <FilterInput
- onChange={[Function]}
- placeholder="Search members"
- value=""
- />
- </div>
- <Button
- className="pull-right"
- disabled={false}
- onClick={[Function]}
- >
- Add member
- </Button>
- </div>
- <SlideDown
- in={false}
- >
- <div
- className="cta-form"
- >
- <CloseButton
- aria-label="Close 'Add team member' dialogue"
- onClick={[Function]}
- />
- <Label
- htmlFor="user-picker"
- >
- Add team member
- </Label>
- <div
- className="gf-form-inline"
- >
- <UserPicker
- className="min-width-30"
- inputId="user-picker"
- onSelected={[Function]}
- />
- </div>
- </div>
- </SlideDown>
- <div
- className="admin-list-table"
- >
- <table
- className="filter-table filter-table--hover form-inline"
- >
- <thead>
- <tr>
- <th />
- <th>
- Login
- </th>
- <th>
- Email
- </th>
- <th>
- Name
- </th>
- <WithFeatureToggle
- featureToggle={false}
- >
- <th>
- Permission
- </th>
- </WithFeatureToggle>
- <th
- style={
- Object {
- "width": "1%",
- }
- }
- />
- </tr>
- </thead>
- <tbody />
- </table>
- </div>
- </div>
- `;
- exports[`Render should render team members 1`] = `
- <div>
- <div
- className="page-action-bar"
- >
- <div
- className="gf-form gf-form--grow"
- >
- <FilterInput
- onChange={[Function]}
- placeholder="Search members"
- value=""
- />
- </div>
- <Button
- className="pull-right"
- disabled={false}
- onClick={[Function]}
- >
- Add member
- </Button>
- </div>
- <SlideDown
- in={false}
- >
- <div
- className="cta-form"
- >
- <CloseButton
- aria-label="Close 'Add team member' dialogue"
- onClick={[Function]}
- />
- <Label
- htmlFor="user-picker"
- >
- Add team member
- </Label>
- <div
- className="gf-form-inline"
- >
- <UserPicker
- className="min-width-30"
- inputId="user-picker"
- onSelected={[Function]}
- />
- </div>
- </div>
- </SlideDown>
- <div
- className="admin-list-table"
- >
- <table
- className="filter-table filter-table--hover form-inline"
- >
- <thead>
- <tr>
- <th />
- <th>
- Login
- </th>
- <th>
- Email
- </th>
- <th>
- Name
- </th>
- <WithFeatureToggle
- featureToggle={false}
- >
- <th>
- Permission
- </th>
- </WithFeatureToggle>
- <th
- style={
- Object {
- "width": "1%",
- }
- }
- />
- </tr>
- </thead>
- <tbody>
- <Connect(TeamMemberRow)
- editorsCanAdmin={false}
- key="1"
- member={
- Object {
- "avatarUrl": "some/url/",
- "email": "test@test.com",
- "labels": Array [
- "label 1",
- "label 2",
- ],
- "login": "testUser-1",
- "name": "testName",
- "permission": 0,
- "teamId": 1,
- "userId": 1,
- }
- }
- signedInUserIsTeamAdmin={true}
- syncEnabled={false}
- />
- <Connect(TeamMemberRow)
- editorsCanAdmin={false}
- key="2"
- member={
- Object {
- "avatarUrl": "some/url/",
- "email": "test@test.com",
- "labels": Array [
- "label 1",
- "label 2",
- ],
- "login": "testUser-2",
- "name": "testName",
- "permission": 0,
- "teamId": 1,
- "userId": 2,
- }
- }
- signedInUserIsTeamAdmin={true}
- syncEnabled={false}
- />
- <Connect(TeamMemberRow)
- editorsCanAdmin={false}
- key="3"
- member={
- Object {
- "avatarUrl": "some/url/",
- "email": "test@test.com",
- "labels": Array [
- "label 1",
- "label 2",
- ],
- "login": "testUser-3",
- "name": "testName",
- "permission": 0,
- "teamId": 1,
- "userId": 3,
- }
- }
- signedInUserIsTeamAdmin={true}
- syncEnabled={false}
- />
- <Connect(TeamMemberRow)
- editorsCanAdmin={false}
- key="4"
- member={
- Object {
- "avatarUrl": "some/url/",
- "email": "test@test.com",
- "labels": Array [
- "label 1",
- "label 2",
- ],
- "login": "testUser-4",
- "name": "testName",
- "permission": 0,
- "teamId": 1,
- "userId": 4,
- }
- }
- signedInUserIsTeamAdmin={true}
- syncEnabled={false}
- />
- <Connect(TeamMemberRow)
- editorsCanAdmin={false}
- key="5"
- member={
- Object {
- "avatarUrl": "some/url/",
- "email": "test@test.com",
- "labels": Array [
- "label 1",
- "label 2",
- ],
- "login": "testUser-5",
- "name": "testName",
- "permission": 4,
- "teamId": 1,
- "userId": 5,
- }
- }
- signedInUserIsTeamAdmin={true}
- syncEnabled={false}
- />
- </tbody>
- </table>
- </div>
- </div>
- `;
|