Test Order
npx playwright test login.spec.ts --headed
npx playwright test editProfile.spec.ts --headed
npx playwright test generalFlow.spec.ts --headed
npx playwright test validation.spec.ts --headed
npx playwright test delete.spec.ts --headed
Run all tests
npx playwright testRun test headed mode
npx playwright test --headedRun specific test
npx playwright test login.spec.ts --headedReports
npx playwright show-reportRun CODEGEN
npx playwright codegen staging.doomobr.comCODEGEN save credentials
npx playwright codegen localhost:3000/admin --save-storage=authAgent.json
CODEGEN load credentials
npx playwright codegen localhost:3000/admin --load-storage=authAgent.json
Add screenshots
await page.screenshot({ path: 'beforeDelete.png', fullPage: true });export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export AWS_DEFAULT_REGION=
export AWS_REGISTRY_TEST_E2E=085419913565.dkr.ecr.us-east-1.amazonaws.com/doomo_e2e
docker login -u AWS -p $(aws ecr get-login-password --region $AWS_DEFAULT_REGION) $AWS_REGISTRY_TEST_E2E
docker build -t $AWS_REGISTRY_TEST_E2E .
docker push $AWS_REGISTRY_TEST_E2E
aws s3 lsaws s3 ls s3://doomo-e2e-files/aws s3 cp e2e s3://doomo-e2e-files/ --recursiveexport BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
echo $BRANCHaws s3 cp e2e s3://doomo-e2e-files/$BRANCH --recursivedocker run -it -v $(pwd):/tests --rm --ipc=host mcr.microsoft.com/playwright:v1.25.0-focal /bin/bash
cd tests
npx playwright testdocker cp 8fbe664eba65:/tests/playwright-report/ `pwd`/playwright-report/.