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

mrc-4333 e2e tests #179

Merged
merged 58 commits into from
Mar 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
d9030c4
run backend with basicauth for smoke test
EmmaLRussell Feb 17, 2025
401f806
add playwright config
EmmaLRussell Feb 17, 2025
f4c8cee
add e2e to ci, first part of server script
EmmaLRussell Feb 18, 2025
44810f1
can run e2e tests with github auth
EmmaLRussell Feb 18, 2025
999dfc1
format
EmmaLRussell Feb 18, 2025
858c3b7
add filter test
EmmaLRussell Feb 19, 2025
1b70507
add packet page summary tests (local and generic)
EmmaLRussell Feb 20, 2025
47b2c73
packetPage section tests
EmmaLRussell Feb 20, 2025
9110d07
lint
EmmaLRussell Feb 20, 2025
24d37e7
create super user in ci
EmmaLRussell Feb 20, 2025
f96ff73
lint
EmmaLRussell Feb 20, 2025
65e5a64
install playwright
EmmaLRussell Feb 20, 2025
5fb99dc
add Platform test
EmmaLRussell Feb 20, 2025
d1fc962
Merge branch 'main' into mrc-4333-e2e
EmmaLRussell Feb 20, 2025
a433d1d
lint
EmmaLRussell Feb 20, 2025
78b79cd
export base url var in ci
EmmaLRussell Feb 20, 2025
51c7f14
add local parameter group row test
EmmaLRussell Feb 20, 2025
131f07e
packet group page tests
EmmaLRussell Feb 20, 2025
45ed78f
add parameter column test
EmmaLRussell Feb 20, 2025
b659293
update readme and run app in dev on ci
EmmaLRussell Feb 25, 2025
c33c16e
test fixes for ci
EmmaLRussell Feb 25, 2025
46c86a1
comments
EmmaLRussell Feb 25, 2025
72c2ae9
fixes for dev run
EmmaLRussell Feb 25, 2025
65470ce
format
EmmaLRussell Feb 25, 2025
f88ea33
docker run does not need basic auth
EmmaLRussell Feb 25, 2025
42fa7b9
revert previous change
EmmaLRussell Feb 25, 2025
a8452ed
refactor to get credentials in auth setup ts - cleanup ongoing
EmmaLRussell Mar 6, 2025
09c2362
working scripts to run against dev and prod
EmmaLRussell Mar 6, 2025
7f14adb
require basic creds to be in env
EmmaLRussell Mar 6, 2025
fe74641
throw error if any fetches from packit during auth fail
EmmaLRussell Mar 6, 2025
011e99b
delete old scripts
EmmaLRussell Mar 6, 2025
929c9d4
instance relative links and upload test results on CI
EmmaLRussell Mar 7, 2025
688b118
Update README.md
EmmaLRussell Mar 7, 2025
47a41f4
Update README.md
EmmaLRussell Mar 7, 2025
a0a15ca
Update .github/workflows/frontend-test-and-build.yml
EmmaLRussell Mar 7, 2025
73a855a
lint
EmmaLRussell Mar 7, 2025
2d6b370
more lint
EmmaLRussell Mar 7, 2025
373fa3c
numerous changes from review
EmmaLRussell Mar 7, 2025
831f778
update README
EmmaLRussell Mar 7, 2025
1652e88
formatting
EmmaLRussell Mar 7, 2025
19472a7
install playwright deps
EmmaLRussell Mar 7, 2025
c59b700
updates for prod
EmmaLRussell Mar 9, 2025
caf28a0
check that test files import "test" from the tag test fixture
EmmaLRussell Mar 17, 2025
66a606f
Update README.md
EmmaLRussell Mar 17, 2025
746c90c
Update app/e2e/packetPage.demo.spec.ts
EmmaLRussell Mar 17, 2025
cf9be0b
Update app/playwright.config.ts
EmmaLRussell Mar 17, 2025
d168b21
lint
EmmaLRussell Mar 17, 2025
005330f
update dev and prod urls
EmmaLRussell Mar 17, 2025
df25e94
CI timeout increase :(
EmmaLRussell Mar 17, 2025
15dee7e
try checkbox click
EmmaLRussell Mar 17, 2025
ef187e3
reset timeout
EmmaLRussell Mar 17, 2025
a2d8065
Update README.md
EmmaLRussell Mar 18, 2025
12dbc8f
set locale in config
EmmaLRussell Mar 18, 2025
63c64f1
Merge branch 'mrc-4333-e2e' of github.com:mrc-ide/packit into mrc-433…
EmmaLRussell Mar 18, 2025
da88cfd
update README
EmmaLRussell Mar 18, 2025
7cb2e42
update tagCheckFixture for dev subdomains
EmmaLRussell Mar 18, 2025
ed09eb4
use tagTestFixure from auth.setup and explicitly set base url in defa…
EmmaLRussell Mar 18, 2025
0eb3b65
update node versions
EmmaLRussell Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update dev and prod urls
EmmaLRussell committed Mar 17, 2025
commit 005330facbec096979b4e9fe65acdc4c484bf89a
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -71,8 +71,8 @@
"build": "react-scripts build",
"test": "react-scripts test",
"test:e2e": "export PACKIT_E2E_BASIC_USER='resideUser@resideAdmin.ic.ac.uk' && export PACKIT_E2E_BASIC_PASSWORD=password && playwright test",
"test:e2e-dev": "export PACKIT_E2E_BASE_URL=https://packit-dev.dide.ic.ac.uk/reside-dev/ && playwright test --grep-invert '@demoPackets|@stateMutate'",
"test:e2e-prod": "export PACKIT_E2E_BASE_URL=https://packit.dide.ic.ac.uk/reside/ && playwright test --grep-invert '@demoPackets|@stateMutate'",
"test:e2e-dev": "export PACKIT_E2E_BASE_URL=https://reside-dev.packit-dev.dide.ic.ac.uk/ && playwright test --grep-invert '@demoPackets|@stateMutate'",
"test:e2e-prod": "export PACKIT_E2E_BASE_URL=https://reside.packit.dide.ic.ac.uk/ && playwright test --grep-invert '@demoPackets|@stateMutate'",
"lint": "npx eslint ./src ./e2e ",
"lint:fix": "npx eslint --fix ./src ./e2e",
"eject": "react-scripts eject",
4 changes: 3 additions & 1 deletion app/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('tailwindcss').Config} */
import * as tailwindAnimate from "tailwindcss-animate";

export const darkMode = ["class"];
export const content = ["./src/**/*.{js,jsx,ts,tsx}"];
export const theme = {
@@ -72,4 +74,4 @@ export const theme = {
}
}
};
export const plugins = [require("tailwindcss-animate")];
export const plugins = [tailwindAnimate];
1 change: 1 addition & 0 deletions scripts/dev-start
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ if [ $API_BUILD_SKIP -eq 0 ]; then
"$HERE"/../api/scripts/build
fi

BASIC_AUTH=""
if [ $ADD_SUPER_USER -eq 1 ]; then
# assume we want to run with basic auth if we're creating a basic super user
BASIC_AUTH="basicauth"