MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/ResultsCondensedCardBottom/__snapshots__/ResultsCondensedCardBottom.test.jsx.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ResultsCondensedCardBottomComponent matches snapshot 1`] = `
<div
  className="condensed-card-bottom-container "
>
  <div
    className="usa-grid-full condensed-card-bottom"
  >
    <ResultsCondensedCardStats
      bidStatisticsArray={
        Array [
          Object {
            "at_skill": 0,
            "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
            "id": 6,
            "in_grade": 0,
            "in_grade_at_skill": 0,
            "total_bids": 2,
          },
        ]
      }
      isTandemTwo={false}
    />
    <CondensedCardData
      position={
        Object {
          "bidcycle": Object {
            "name": "Bid Cycle 1",
          },
          "id": 1,
          "position": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
                "id": 6,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 2,
              },
            ],
            "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
            "classifications": Array [],
            "create_date": "2006-09-20T00:00:00Z",
            "current_assignment": Object {
              "estimated_end_date": "2020-03-13T15:51:11.478084Z",
              "start_date": "2018-03-13T15:51:11.478084Z",
              "status": "active",
              "tour_of_duty": "2 YRS (2 R & R)",
              "user": "John Doe",
            },
            "description": Object {
              "content": "The Office Management Specialist (OMS) for the Deputy Chief of Mission (DCM) provides office management services in this Mission of six agencies, 387 American and Locally Employed Staff (LES) positions, and 279 guard force contractors.  The OMS manages Executive Office operations and positionstains the DCM’s calendar in support of overall Mission goals and objectives.  The OMS (DCM) drafts routine correspondence, memoranda and cables as appropriate and ensures documents are cleared and delivered in a timely fashion. The OMS serves as back up to the Ambassador’s OMS.  POCs areSandra McInturff, DCM OMS, McInturffSL@state.gov, 231-77-677-7000, ext. 7452; Samue Watson, DCM, WatsonSR@state.gov, 231-77-677-7000, ext. 7452. Please submit lobbying documents to the 360 Community Lobbying Center http://appcenter.state.sbu/CLC. (Revised 1/2017)

",
              "date_created": "2018-03-08T18:00:33.241370Z",
              "date_updated": "2018-03-13T15:55:00.018644Z",
              "id": 90,
              "is_editable_by_user": false,
              "last_editing_user": null,
              "point_of_contact": null,
              "website": null,
            },
            "effective_date": "2012-10-22T00:00:00Z",
            "grade": "06",
            "id": 6,
            "is_highlighted": false,
            "is_overseas": true,
            "languages": Array [],
            "latest_bidcycle": Object {
              "active": true,
              "cycle_deadline_date": "2018-04-13T15:51:10.980554Z",
              "cycle_end_date": "2018-06-13T15:51:10.980554Z",
              "cycle_start_date": "2017-12-13T15:51:10.980554Z",
              "id": 1,
              "name": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
            },
            "organization": "(MONROVIA) MONROVIA LIBERIA",
            "position_number": "10034001",
            "post": Object {
              "code": "LI6000000",
              "cost_of_living_adjustment": 30,
              "danger_pay": 0,
              "differential_rate": 30,
              "has_consumable_allowance": true,
              "has_service_needs_differential": true,
              "id": 160,
              "location": Object {
                "city": "Freetown",
                "code": "00A",
                "country": "Sierra Leone",
                "id": 103,
                "state": "",
              },
              "obc_id": 1,
              "rest_relaxation_point": "Paris",
              "tour_of_duty": "2 YRS (2 R & R)",
            },
            "posted_date": "2012-10-22T00:00:00Z",
            "representation": "[10034001] OMS (DCM) (Monrovia, Liberia)",
            "skill": "OFFICE MANAGEMENT (9017)",
            "status": null,
            "status_code": null,
            "title": "OMS (DCM)",
            "tour_of_duty": null,
            "update_date": "2017-06-08T00:00:00Z",
          },
        }
      }
    />
    <div
      className="usa-grid-full condensed-card-buttons-section"
    >
      <Connect(FavoriteContainer)
        compareArray={
          Array [
            Object {
              "id": 1,
              "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
            },
            Object {
              "id": 4,
              "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
            },
          ]
        }
        hasBorder={true}
        hideText={false}
        isTandem={false}
        limit={15}
        page={1}
        refKey={1}
        refresh={false}
        sortType={null}
        useButtonClass={true}
        useButtonClassSecondary={false}
        useLongText={true}
      />
    </div>
  </div>
</div>
`;

exports[`ResultsCondensedCardBottomComponent matches snapshot when context.isClient === true 1`] = `
<div
  className="condensed-card-bottom-container "
>
  <div
    className="usa-grid-full condensed-card-bottom"
  >
    <ResultsCondensedCardStats
      bidStatisticsArray={
        Array [
          Object {
            "at_skill": 0,
            "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
            "id": 6,
            "in_grade": 0,
            "in_grade_at_skill": 0,
            "total_bids": 2,
          },
        ]
      }
      isTandemTwo={false}
    />
    <CondensedCardData
      position={
        Object {
          "bidcycle": Object {
            "name": "Bid Cycle 1",
          },
          "id": 1,
          "position": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
                "id": 6,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 2,
              },
            ],
            "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
            "classifications": Array [],
            "create_date": "2006-09-20T00:00:00Z",
            "current_assignment": Object {
              "estimated_end_date": "2020-03-13T15:51:11.478084Z",
              "start_date": "2018-03-13T15:51:11.478084Z",
              "status": "active",
              "tour_of_duty": "2 YRS (2 R & R)",
              "user": "John Doe",
            },
            "description": Object {
              "content": "The Office Management Specialist (OMS) for the Deputy Chief of Mission (DCM) provides office management services in this Mission of six agencies, 387 American and Locally Employed Staff (LES) positions, and 279 guard force contractors.  The OMS manages Executive Office operations and positionstains the DCM’s calendar in support of overall Mission goals and objectives.  The OMS (DCM) drafts routine correspondence, memoranda and cables as appropriate and ensures documents are cleared and delivered in a timely fashion. The OMS serves as back up to the Ambassador’s OMS.  POCs areSandra McInturff, DCM OMS, McInturffSL@state.gov, 231-77-677-7000, ext. 7452; Samue Watson, DCM, WatsonSR@state.gov, 231-77-677-7000, ext. 7452. Please submit lobbying documents to the 360 Community Lobbying Center http://appcenter.state.sbu/CLC. (Revised 1/2017)

",
              "date_created": "2018-03-08T18:00:33.241370Z",
              "date_updated": "2018-03-13T15:55:00.018644Z",
              "id": 90,
              "is_editable_by_user": false,
              "last_editing_user": null,
              "point_of_contact": null,
              "website": null,
            },
            "effective_date": "2012-10-22T00:00:00Z",
            "grade": "06",
            "id": 6,
            "is_highlighted": false,
            "is_overseas": true,
            "languages": Array [],
            "latest_bidcycle": Object {
              "active": true,
              "cycle_deadline_date": "2018-04-13T15:51:10.980554Z",
              "cycle_end_date": "2018-06-13T15:51:10.980554Z",
              "cycle_start_date": "2017-12-13T15:51:10.980554Z",
              "id": 1,
              "name": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
            },
            "organization": "(MONROVIA) MONROVIA LIBERIA",
            "position_number": "10034001",
            "post": Object {
              "code": "LI6000000",
              "cost_of_living_adjustment": 30,
              "danger_pay": 0,
              "differential_rate": 30,
              "has_consumable_allowance": true,
              "has_service_needs_differential": true,
              "id": 160,
              "location": Object {
                "city": "Freetown",
                "code": "00A",
                "country": "Sierra Leone",
                "id": 103,
                "state": "",
              },
              "obc_id": 1,
              "rest_relaxation_point": "Paris",
              "tour_of_duty": "2 YRS (2 R & R)",
            },
            "posted_date": "2012-10-22T00:00:00Z",
            "representation": "[10034001] OMS (DCM) (Monrovia, Liberia)",
            "skill": "OFFICE MANAGEMENT (9017)",
            "status": null,
            "status_code": null,
            "title": "OMS (DCM)",
            "tour_of_duty": null,
            "update_date": "2017-06-08T00:00:00Z",
          },
        }
      }
    />
    <div
      className="usa-grid-full condensed-card-buttons-section"
    />
  </div>
</div>
`;

exports[`ResultsCondensedCardBottomComponent matches snapshot with bidlist button 1`] = `
<div
  className="condensed-card-bottom-container "
>
  <div
    className="usa-grid-full condensed-card-bottom"
  >
    <ResultsCondensedCardStats
      bidStatisticsArray={
        Array [
          Object {
            "at_skill": 0,
            "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
            "id": 6,
            "in_grade": 0,
            "in_grade_at_skill": 0,
            "total_bids": 2,
          },
        ]
      }
      isTandemTwo={false}
    />
    <CondensedCardData
      position={
        Object {
          "bidcycle": Object {
            "name": "Bid Cycle 1",
          },
          "id": 1,
          "position": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
                "id": 6,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 2,
              },
            ],
            "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
            "classifications": Array [],
            "create_date": "2006-09-20T00:00:00Z",
            "current_assignment": Object {
              "estimated_end_date": "2020-03-13T15:51:11.478084Z",
              "start_date": "2018-03-13T15:51:11.478084Z",
              "status": "active",
              "tour_of_duty": "2 YRS (2 R & R)",
              "user": "John Doe",
            },
            "description": Object {
              "content": "The Office Management Specialist (OMS) for the Deputy Chief of Mission (DCM) provides office management services in this Mission of six agencies, 387 American and Locally Employed Staff (LES) positions, and 279 guard force contractors.  The OMS manages Executive Office operations and positionstains the DCM’s calendar in support of overall Mission goals and objectives.  The OMS (DCM) drafts routine correspondence, memoranda and cables as appropriate and ensures documents are cleared and delivered in a timely fashion. The OMS serves as back up to the Ambassador’s OMS.  POCs areSandra McInturff, DCM OMS, McInturffSL@state.gov, 231-77-677-7000, ext. 7452; Samue Watson, DCM, WatsonSR@state.gov, 231-77-677-7000, ext. 7452. Please submit lobbying documents to the 360 Community Lobbying Center http://appcenter.state.sbu/CLC. (Revised 1/2017)

",
              "date_created": "2018-03-08T18:00:33.241370Z",
              "date_updated": "2018-03-13T15:55:00.018644Z",
              "id": 90,
              "is_editable_by_user": false,
              "last_editing_user": null,
              "point_of_contact": null,
              "website": null,
            },
            "effective_date": "2012-10-22T00:00:00Z",
            "grade": "06",
            "id": 6,
            "is_highlighted": false,
            "is_overseas": true,
            "languages": Array [],
            "latest_bidcycle": Object {
              "active": true,
              "cycle_deadline_date": "2018-04-13T15:51:10.980554Z",
              "cycle_end_date": "2018-06-13T15:51:10.980554Z",
              "cycle_start_date": "2017-12-13T15:51:10.980554Z",
              "id": 1,
              "name": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
            },
            "organization": "(MONROVIA) MONROVIA LIBERIA",
            "position_number": "10034001",
            "post": Object {
              "code": "LI6000000",
              "cost_of_living_adjustment": 30,
              "danger_pay": 0,
              "differential_rate": 30,
              "has_consumable_allowance": true,
              "has_service_needs_differential": true,
              "id": 160,
              "location": Object {
                "city": "Freetown",
                "code": "00A",
                "country": "Sierra Leone",
                "id": 103,
                "state": "",
              },
              "obc_id": 1,
              "rest_relaxation_point": "Paris",
              "tour_of_duty": "2 YRS (2 R & R)",
            },
            "posted_date": "2012-10-22T00:00:00Z",
            "representation": "[10034001] OMS (DCM) (Monrovia, Liberia)",
            "skill": "OFFICE MANAGEMENT (9017)",
            "status": null,
            "status_code": null,
            "title": "OMS (DCM)",
            "tour_of_duty": null,
            "update_date": "2017-06-08T00:00:00Z",
          },
        }
      }
    />
    <div
      className="usa-grid-full condensed-card-buttons-section"
    >
      <Connect(FavoriteContainer)
        compareArray={
          Array [
            Object {
              "id": 1,
              "representation": "[00003026] OMS (COM) (Freetown, Sierra Leone)",
            },
            Object {
              "id": 4,
              "representation": "[00180000] OMS (DCM) (Addis Ababa, Ethiopia)",
            },
          ]
        }
        hasBorder={true}
        hideText={false}
        isTandem={false}
        limit={15}
        page={1}
        refKey={1}
        refresh={false}
        sortType={null}
        useButtonClass={true}
        useButtonClassSecondary={false}
        useLongText={true}
      />
      <Connect(PermissionsWrapper)
        permissions="bidder"
      >
        <Connect(BidListButtonContainer)
          disabled={true}
          id={1}
        />
      </Connect(PermissionsWrapper)>
    </div>
  </div>
</div>
`;