-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is trivial for now but once we have some functionality it will be more interesting
- Loading branch information
rich
committed
Sep 13, 2024
1 parent
705acea
commit a116b1e
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { copyFile } from "fs/promises"; | ||
|
||
export const createDestinationDirectory = async () => { | ||
console.info("Creating destination directory..."); | ||
await mkdir("./data"); | ||
}; | ||
|
||
export const seedTestData = async () => { | ||
console.info("Seeding test data..."); | ||
await copyFile("./e2es/testData/repos.json", "./data/repos.json"); | ||
}; | ||
|
||
await createDestinationDirectory(); | ||
await seedTestData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"org": "dxw", | ||
"repos": [ | ||
{ | ||
"name": "optionparser", | ||
"description": "Command-line option parser for PHP (forked with a `v1.0.0`)", | ||
"htmlUrl": "https://github.com/dxw/optionparser", | ||
"apiUrl": "https://api.github.com/repos/dxw/optionparser", | ||
"pullsUrl": "https://api.github.com/repos/dxw/optionparser/pulls{/number}", | ||
"issuesUrl": "https://api.github.com/repos/dxw/optionparser/issues{/number}", | ||
"updatedAt": "2024-07-08T12:39:14Z", | ||
"language": "PHP", | ||
"topics": ["composer", "govpress", "packagist", "php"], | ||
"openIssues": 0, | ||
"dependencies": [], | ||
"openPrsCount": 0 | ||
}, | ||
{ | ||
"name": "govuk-blogs", | ||
"description": "This is the theme in use for the blogs hosted at blog.gov.uk.", | ||
"htmlUrl": "https://github.com/dxw/govuk-blogs", | ||
"apiUrl": "https://api.github.com/repos/dxw/govuk-blogs", | ||
"pullsUrl": "https://api.github.com/repos/dxw/govuk-blogs/pulls{/number}", | ||
"issuesUrl": "https://api.github.com/repos/dxw/govuk-blogs/issues{/number}", | ||
"updatedAt": "2024-09-04T09:02:48Z", | ||
"language": "PHP", | ||
"topics": ["govpress", "wordpress-theme"], | ||
"openIssues": 1, | ||
"dependencies": [], | ||
"openPrsCount": 0 | ||
}, | ||
{ | ||
"name": "php-missing", | ||
"description": "Some functions missing from PHP's stdlib", | ||
"htmlUrl": "https://github.com/dxw/php-missing", | ||
"apiUrl": "https://api.github.com/repos/dxw/php-missing", | ||
"pullsUrl": "https://api.github.com/repos/dxw/php-missing/pulls{/number}", | ||
"issuesUrl": "https://api.github.com/repos/dxw/php-missing/issues{/number}", | ||
"updatedAt": "2024-07-18T18:12:43Z", | ||
"language": "PHP", | ||
"topics": ["composer", "govpress", "packagist", "php"], | ||
"openIssues": 7, | ||
"dependencies": [], | ||
"openPrsCount": 2 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test("has dependency info", async ({ page, baseURL }) => { | ||
await page.goto(baseURL); | ||
|
||
await expect(page).toHaveTitle(/Towtruck/); | ||
|
||
page.getByText("There are 3 repositories that Towtruck is tracking for dxw."); | ||
|
||
const tableHeadings = [ | ||
"Name", | ||
"Description", | ||
"Language", | ||
"Last Updated", | ||
"Open issues count", | ||
"Open PRs count", | ||
"Dependencies", | ||
]; | ||
tableHeadings.forEach((heading) => { | ||
page.getByRole("columnheader", { name: heading }); | ||
}); | ||
}); |