Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests and posting #699

Merged
merged 12 commits into from
Dec 16, 2024
2 changes: 1 addition & 1 deletion .github/workflows/pa11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
node-version: "18"

- name: Install dependencies
run: npm install --production=false && pip install -r requirements.txt
run: npm ci --production=false && pip install --require-hashes -r requirements.txt

- name: Setup custom variables
id: customvars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- name: Install NPM dependencies
run: npm install
run: npm ci

- name: Build site
run: npm run build
Expand Down
12 changes: 6 additions & 6 deletions _tests/renderInfoSessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ describe("renderInfoSessions", () => {
it("renders valid upcoming info sessions into the link item", () => {
const mockInfoSessions = [
{
date: "2024-12-15T00:00:00Z",
date: "2034-12-15T00:00:00Z",
time: "2:00pm-3:00pm",
link: "https://example.com/session1",
},
{
date: "2024-12-20T00:00:00Z",
date: "2034-12-20T00:00:00Z",
time: "1:00pm-2:00pm",
link: "https://example.com/session2",
},
Expand All @@ -31,7 +31,7 @@ describe("renderInfoSessions", () => {

expect(listItems.length).toBe(2);
expect(listItems[0].querySelector("a").href).toBe(mockInfoSessions[0].link);
expect(listItems[0].querySelector("a").innerText).toContain("Sunday");
expect(listItems[0].querySelector("a").innerText).toContain("Friday");
expect(listItems[1].querySelector("a").href).toBe(mockInfoSessions[1].link);
});

Expand Down Expand Up @@ -78,7 +78,7 @@ describe("renderInfoSessions", () => {
link: "https://example.com/past-session",
},
{
date: "2024-12-15T00:00:00Z",
date: "2034-12-15T00:00:00Z",
time: "2:00pm-3:00pm",
link: "https://example.com/future-session",
},
Expand All @@ -96,7 +96,7 @@ describe("renderInfoSessions", () => {
it("renders a styled wrapper with correct classes for /join/ page layout", () => {
const mockInfoSessions = [
{
date: "2024-12-15T00:00:00Z",
date: "2034-12-15T00:00:00Z",
time: "2:00pm-3:00pm",
link: "https://example.com/session1",
},
Expand All @@ -114,7 +114,7 @@ describe("renderInfoSessions", () => {
it("renders a styled wrapper with correct classes for position layout", () => {
const mockInfoSessions = [
{
date: "2024-12-15T00:00:00Z",
date: "2034-12-15T00:00:00Z",
time: "2:00pm-3:00pm",
link: "https://example.com/session1",
},
Expand Down
6 changes: 3 additions & 3 deletions pages/jointts/positions/TTS-Sr-Advisor-Technology.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ title: "TTS: Senior Advisor for Technology"

# Put the opening and closing dates of your posting here, if you have them
# These dates MUST be formatted as YYYY-MM-DD, where month and day are 2-digits
opens:
closes:
opens: 2024-12-16
closes: 2024-12-20

# If the role is listed on a different site and you just want to link to it,
# put that link here. You can leave the rest of the template as-is, unless you
Expand Down Expand Up @@ -167,5 +167,5 @@ specialized_requirements: |

# This can be filled prior to the job posting going live or left blank #
# The application button will only show after the open date #
application_link:
application_link: https://www.usajobs.gov/job/824096100
---
Loading