Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz committed Jul 3, 2024
1 parent c4cd395 commit 5d14b39
Show file tree
Hide file tree
Showing 11 changed files with 750 additions and 1,599 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
# yarn lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"lint": "turbo run lint",
"lint:platform": "turbo run lint --filter=platform",
"format": "turbo run prettier:all",
"dev:test:platform:e2e": "turbo run dev-test",
"test:platform:e2e": "turbo run test:platform:e2e",
"prepare": "husky install"
},
"devDependencies": {
Expand All @@ -32,7 +34,7 @@
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^2.5.1",
"turbo": "^1.10.13"
"turbo": "^2.0.3"
},
"packageManager": "[email protected]",
"lint-staged": {
Expand Down
18 changes: 0 additions & 18 deletions packages/platform-test/e2e/example.spec.ts

This file was deleted.

8 changes: 8 additions & 0 deletions packages/platform-test/e2e/pages/homepage.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test, expect } from "@playwright/test";

const devURL = "http://localhost:4173"; // TODO: move to env variable

test("Validate page title", async ({ page }) => {
await page.goto(devURL);
await expect(page).toHaveTitle("Open Targets Platform");
});
7 changes: 0 additions & 7 deletions packages/platform-test/e2e/test-1.spec.ts

This file was deleted.

8 changes: 6 additions & 2 deletions packages/platform-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
"test": "tests"
},
"devDependencies": {
"@playwright/test": "^1.36.2"
"@playwright/test": "^1.36.2",
"start-server-and-test": "^2.0.4"
},
"scripts": {
"dev-test": "playwright test",
"test:platform:e2e": "start-server-and-test \"(cd ../../apps/platform && yarn run serve)\" http://localhost:4173 \"playwright test\""
},
"scripts": {},
"keywords": [],
"author": "",
"license": "ISC"
Expand Down
68 changes: 68 additions & 0 deletions packages/platform-test/playwright-report/index.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/platform-test/test-results/.last-run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"status": "passed",
"failedTests": []
}
Loading

0 comments on commit 5d14b39

Please sign in to comment.