MetaPhase-Consulting/State-TalentMAP

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

Summary

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

exports[`HomePagePositionsSection matches snapshot 1`] = `
<div
  className="usa-grid-full positions-section"
>
  <PositionsSectionTitle
    title={
      <Link
        replace={false}
        title="View more Title"
        to=""
      >
        <h2
          className="positions-section-title"
        >
          <React.Fragment>
            Title
            <FontAwesome
              name="angle-right"
            />
          </React.Fragment>
        </h2>
      </Link>
    }
    viewMoreLink=""
  />
  <HomePagePositionsList
    bidList={
      Array [
        Object {
          "approved_date": "2017-12-20",
          "closed_date": "2017-12-20",
          "create_date": "2017-12-20",
          "declined_date": "2017-12-20",
          "draft_date": "2017-12-20",
          "handshake_accepted_date": "2017-12-20",
          "handshake_declined_date": "2017-12-20",
          "handshake_offered_date": "2017-12-20",
          "id": 3,
          "in_panel_date": "2017-12-20",
          "is_priority": false,
          "position_info": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "has_handshake_accepted": null,
                "has_handshake_offered": false,
                "id": null,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 0,
              },
            ],
            "bidcycle": Object {
              "name": "Demo BidCycle 2017-10-31 16:00:51.254762",
            },
            "id": 11,
            "position": Object {
              "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
              "create_date": "2015-08-05",
              "grade": "03",
              "position_number": "10035561",
              "post": Object {
                "id": 199,
                "location": Object {
                  "city": "Freetown",
                  "code": "00A",
                  "country": "Sierra Leone",
                  "id": 103,
                  "state": "",
                },
              },
              "skill": "POLITICAL AND ECONOMIC AFFAIRS (6050)",
              "title": "POLITICAL/ECONOMIC OFFICER",
              "update_date": "2017-06-08",
            },
          },
          "reviewer": Object {
            "email": "woodwardw@state.gov",
            "first_name": "Wendy",
            "is_cdo": false,
            "last_name": "Woodward",
            "phone_number": "555-555-5555",
            "username": "woodwardw",
          },
          "scheduled_panel_date": "2017-12-20",
          "status": "approved",
          "submitted_date": "2017-12-20",
          "update_date": "2017-12-20",
          "user": "rehmant",
        },
        Object {
          "approved_date": "2017-12-20",
          "closed_date": "2017-12-20",
          "create_date": "2017-12-20",
          "declined_date": "2017-12-20",
          "draft_date": "2017-12-20",
          "handshake_accepted_date": "2017-12-20",
          "handshake_declined_date": "2017-12-20",
          "handshake_offered_date": "2017-12-20",
          "id": 1,
          "in_panel_date": "2017-12-20",
          "is_priority": true,
          "position_info": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "has_handshake_accepted": null,
                "has_handshake_offered": false,
                "id": null,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 0,
              },
            ],
            "position": Object {
              "bidcycle": Object {
                "name": "Demo BidCycle 2017-10-31 16:00:51.254762",
              },
              "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
              "create_date": "2006-09-20",
              "grade": "05",
              "id": 1,
              "position_number": "00003026",
              "post": Object {
                "id": 235,
                "location": Object {
                  "city": "Freetown",
                  "code": "00A",
                  "country": "Sierra Leone",
                  "id": 103,
                  "state": "",
                },
              },
              "skill": "OFFICE MANAGEMENT (9017)",
              "title": "OMS (COM)",
              "update_date": "2017-06-08",
            },
          },
          "reviewer": Object {
            "email": "woodwardw@state.gov",
            "first_name": "Wendy",
            "is_cdo": false,
            "last_name": "Woodward",
            "phone_number": "555-555-5555",
            "username": "woodwardw",
          },
          "scheduled_panel_date": "2017-12-20",
          "status": "closed",
          "submitted_date": "2017-12-20",
          "update_date": "2017-12-20",
          "user": "rehmant",
        },
        Object {
          "approved_date": "2017-12-20",
          "closed_date": "2017-12-20",
          "create_date": "2017-12-20",
          "declined_date": "2017-12-20",
          "draft_date": "2017-12-20",
          "handshake_accepted_date": "2017-12-20",
          "handshake_declined_date": "2017-12-20",
          "handshake_offered_date": "2017-12-20",
          "id": 2,
          "in_panel_date": "2017-12-20",
          "is_priority": false,
          "position_info": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "has_handshake_accepted": null,
                "has_handshake_offered": false,
                "id": null,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 0,
              },
            ],
            "id": 79,
            "position": Object {
              "bidcycle": Object {
                "name": "Demo BidCycle 2017-10-31 16:00:51.254762",
              },
              "bureau": "(AF) BUREAU OF AFRICAN AFFAIRS",
              "create_date": "2006-09-20",
              "grade": "04",
              "id": 84,
              "position_number": "56001600",
              "post": Object {
                "id": 195,
                "location": Object {
                  "city": "Freetown",
                  "code": "00A",
                  "country": "Sierra Leone",
                  "id": 103,
                  "state": "",
                },
              },
              "skill": "SECURITY (2501)",
              "title": "SPECIAL AGENT",
              "update_date": "2017-06-08",
            },
          },
          "reviewer": Object {
            "email": "woodwardw@state.gov",
            "first_name": "Wendy",
            "is_cdo": false,
            "last_name": "Woodward",
            "phone_number": "555-555-5555",
            "username": "woodwardw",
          },
          "scheduled_panel_date": "2017-12-20",
          "status": "closed",
          "submitted_date": "2017-12-20",
          "update_date": "2017-12-20",
          "user": "rehmant",
        },
      ]
    }
    favorites={Array []}
    favoritesPV={Array []}
    favoritesPVTandem={Array []}
    favoritesTandem={Array []}
    isLoading={false}
    isTandem={false}
    limit={15}
    page={1}
    positions={
      Array [
        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",
          },
        },
        Object {
          "bidcycle": Object {
            "name": "Bid Cycle 1",
          },
          "id": 2,
          "position": Object {
            "bid_statistics": Array [
              Object {
                "at_skill": 0,
                "bidcycle": "Demo BidCycle 2018-03-13 15:51:10.980576+00:00",
                "id": 60,
                "in_grade": 0,
                "in_grade_at_skill": 0,
                "total_bids": 0,
              },
            ],
            "bureau": "(WHA) BUREAU OF WESTERN HEMISPHERIC AFFAIRS",
            "classifications": Array [],
            "create_date": "2006-09-20T00:00:00Z",
            "current_assignment": Object {
              "estimated_end_date": "2020-03-13T15:51:13.126727Z",
              "start_date": "2018-03-13T15:51:13.126727Z",
              "status": "active",
              "tour_of_duty": "2 YRS (2 R & R)",
              "user": "John Doe",
            },
            "description": Object {
              "content": "(updated August 2012) The incumbent serves as one of four Assistant Regional Security Officers (ARSO) in the Regional Security Office in a two year assignment with a rotating management portfolio that provides generous exposure to all aspects of Diplomatic Security’s overseas programs. RSO Port-au-Prince currently consists of a 6 member Marine Security Guard Detachment, 750+direct hire Mission guard force, 17 direct-hire Bodyguards, 2 FSN Investigators, 6 member Surveillance Detection Team, a 2-person Residential Security Unit, and one Office Management Specialist.  The incumbent has direct supervisory responsibilities.  The incumbent is expected to manage the Marine Security Guard program, Mission residential and physical security programs, operational and administrative oversight of the direct hire Mission guard force, and complex budget issues. The incumbent also coordinates security for large-scale Mission events and visiting high ranking USG officials and conducts personnel, terrorist, criminal, and counterintelligence investigations as required. Point of Contact is RSO Jeffrey M. Roberts.",
              "date_created": "2018-03-08T18:00:32.971745Z",
              "date_updated": "2018-03-13T15:54:59.677323Z",
              "id": 26,
              "is_editable_by_user": false,
              "last_editing_user": null,
              "point_of_contact": null,
              "website": null,
            },
            "effective_date": "2016-10-02T00:00:00Z",
            "grade": "04",
            "id": 60,
            "is_highlighted": false,
            "is_overseas": true,
            "languages": Array [
              Object {
                "id": 1,
                "language": "French (FR)",
                "reading_proficiency": "2",
                "representation": "French (FR) 2/2",
                "spoken_proficiency": "2",
              },
              Object {
                "id": 20,
                "language": "Haitian Creole (HC)",
                "reading_proficiency": "0",
                "representation": "Haitian Creole (HC) 0/0",
                "spoken_proficiency": "0",
              },
            ],
            "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": "(PORT AU PRIN) PORT AU PRINCE HAITI",
            "position_number": "56082000",
            "post": Object {
              "code": "HA7000000",
              "cost_of_living_adjustment": 15,
              "danger_pay": 15,
              "differential_rate": 20,
              "has_consumable_allowance": true,
              "has_service_needs_differential": true,
              "id": 110,
              "location": Object {
                "city": "Chicago",
                "code": "101",
                "country": "United States",
                "id": 7,
                "state": "IL",
              },
              "obc_id": null,
              "rest_relaxation_point": "Miami",
              "tour_of_duty": "2 YRS (2 R & R)",
            },
            "posted_date": "2016-10-02T00:00:00Z",
            "representation": "[56082000] SPECIAL AGENT (Port-Au-Prince, Haiti)",
            "skill": "SECURITY (2501)",
            "status": null,
            "status_code": null,
            "title": "SPECIAL AGENT",
            "tour_of_duty": null,
            "update_date": "2017-06-08T00:00:00Z",
          },
        },
      ]
    }
    refreshFavorites={false}
    showBidListButton={false}
    showCompareButton={false}
    sortType={null}
    title="Title"
    type="default"
    useShortFavButton={false}
  />
</div>
`;