Skip to content

Commit

Permalink
fix: lint errors on test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Jul 4, 2024
1 parent 5e3bddf commit 3c77c49
Show file tree
Hide file tree
Showing 7 changed files with 623 additions and 398 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Playwright Tests

env:
APP_BASE_URL: ${{ vars.APP_BASE_URL }}
PLAYWRIGHT_APP_BASE_URL=${{ vars.PLAYWRIGHT_APP_BASE_URL }}
PLAYWRIGHT_USER_NAME=${{ secrets.PLAYWRIGHT_USER_NAME }}
PLAYWRIGHT_USER_PASSWORD=${{ secrets.PLAYWRIGHT_USER_PASSWORD }}

on:
push:
Expand Down
8 changes: 6 additions & 2 deletions packages/e2e-tests/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#Playwright Base URL
APP_BASE_URL=
# Playwright Base URL
PLAYWRIGHT_APP_BASE_URL=
# User name of the test user for Playwright
PLAYWRIGHT_USER_NAME=
# Password of the test user for Playwright
PLAYWRIGHT_USER_PASSWORD=
6 changes: 6 additions & 0 deletions packages/e2e-tests/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
"quoteStyle": "single",
"indentWidth": 4
}
},
"json": {
"formatter": {
"indentStyle": "space",
"indentWidth": 4
}
}
}
2 changes: 1 addition & 1 deletion packages/e2e-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.APP_BASE_URL,
baseURL: process.env.PLAYWRIGHT_APP_BASE_URL,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
Expand Down
134 changes: 67 additions & 67 deletions packages/e2e-tests/tests/field_report/fieldReport.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"formName": "Create Field Report",
"country": "Albania",
"district": "Berat",
"disasterType": "Biological Emergency",
"date": "2023-06-20",
"title": "bio hazard",
"govRequest": "Yes",
"nationalsocietyRequest": "No",
"num_injured": "8000",
"gov_num_injured": "4000",
"other_num_injured": "5000",
"num_dead": "1200",
"gov_num_dead": "800",
"other_num_dead": "500",
"num_missing": "6000",
"gov_num_missing": "3000",
"other_num_missing": "2500",
"num_affected": "12000",
"gov_num_affected": "8000",
"other_num_affected": "4000",
"num_displaced": "18000",
"gov_num_displaced": "14000",
"other_num_displaced": "11000",
"other_sources":"The English-Quotient (EQ) test measures your proficiency in the English language, including vocabulary, grammar, and comprehension. Designed for learners and professionals, it provides a benchmark for assessing language skills. ",
"gov_num_assisted": "8000",
"num_assisted": "7000",
"num_localstaff": "6000",
"num_volunteers": "5000",
"num_expats_delegates": "4000",
"actionHuman": "Human remains management and identification",
"actionEvacuation": "Evacuation",
"actionHealth": "Health",
"actionShelter": "Shelter",
"actionCamp": "Camp management",
"actionFirst": "First Aid",
"actionPsychosocial": "Psychosocial support services",
"actionFood": "Food aid",
"nationalSocietySummary":"Evacuation is the urgent removal of people from dangerous areas to safety, often during natural disasters or emergencies",
"federationSummary":"A shelter provides safety and protection, offering a secure place for people or animals, often during emergencies or harsh conditions",
"rcrcSummary":"Food sustains life, providing essential nutrients and energy. It can be a source of pleasure, culture, and community, nourishing body and soul",
"informationBulletin": "Planned",
"actionOther": "Who else was involved? UN agencies? NGOs? Government? Describe what other actors did. Also mention who the other actors are.",
"interventionOptionOne":"Requested",
"interventionOptionTwo":"Planned",
"interventionOptionThree":"Completed",
"drefRequested":"500000",
"emergencyAppeal":"600000",
"rapidResponse":"400000",
"emergencyResponse":"90000",
"originatorName":"Uday",
"originatorTitle":"Project Manager",
"originatorEmail":"[email protected]",
"originatorPhone":"9802556314",
"nationalName":"Navin",
"nationalTitle":"Network Engineer",
"nationalEmail":"[email protected]",
"nationalPhone":"9804115777",
"ifrcName":"Ankit",
"ifrcTitle":"CEO",
"ifrcEmail":"[email protected]",
"ifrcPhone":"9801447523",
"mediaName":"Shreya",
"mediaTitle":"Shreya uffu",
"mediaEmail":"[email protected]",
"mediaPhone":"9805441239",
"visibiltyOptOne":"RCRC Movement",
"visibiltyOptTwo":"Public"
"formName": "Create Field Report",
"country": "Albania",
"district": "Berat",
"disasterType": "Biological Emergency",
"date": "2023-06-20",
"title": "bio hazard",
"govRequest": "Yes",
"nationalsocietyRequest": "No",
"num_injured": "8000",
"gov_num_injured": "4000",
"other_num_injured": "5000",
"num_dead": "1200",
"gov_num_dead": "800",
"other_num_dead": "500",
"num_missing": "6000",
"gov_num_missing": "3000",
"other_num_missing": "2500",
"num_affected": "12000",
"gov_num_affected": "8000",
"other_num_affected": "4000",
"num_displaced": "18000",
"gov_num_displaced": "14000",
"other_num_displaced": "11000",
"other_sources": "The English-Quotient (EQ) test measures your proficiency in the English language, including vocabulary, grammar, and comprehension. Designed for learners and professionals, it provides a benchmark for assessing language skills. ",
"gov_num_assisted": "8000",
"num_assisted": "7000",
"num_localstaff": "6000",
"num_volunteers": "5000",
"num_expats_delegates": "4000",
"actionHuman": "Human remains management and identification",
"actionEvacuation": "Evacuation",
"actionHealth": "Health",
"actionShelter": "Shelter",
"actionCamp": "Camp management",
"actionFirst": "First Aid",
"actionPsychosocial": "Psychosocial support services",
"actionFood": "Food aid",
"nationalSocietySummary": "Evacuation is the urgent removal of people from dangerous areas to safety, often during natural disasters or emergencies",
"federationSummary": "A shelter provides safety and protection, offering a secure place for people or animals, often during emergencies or harsh conditions",
"rcrcSummary": "Food sustains life, providing essential nutrients and energy. It can be a source of pleasure, culture, and community, nourishing body and soul",
"informationBulletin": "Planned",
"actionOther": "Who else was involved? UN agencies? NGOs? Government? Describe what other actors did. Also mention who the other actors are.",
"interventionOptionOne": "Requested",
"interventionOptionTwo": "Planned",
"interventionOptionThree": "Completed",
"drefRequested": "500000",
"emergencyAppeal": "600000",
"rapidResponse": "400000",
"emergencyResponse": "90000",
"originatorName": "Uday",
"originatorTitle": "Project Manager",
"originatorEmail": "[email protected]",
"originatorPhone": "9802556314",
"nationalName": "Navin",
"nationalTitle": "Network Engineer",
"nationalEmail": "[email protected]",
"nationalPhone": "9804115777",
"ifrcName": "Ankit",
"ifrcTitle": "CEO",
"ifrcEmail": "[email protected]",
"ifrcPhone": "9801447523",
"mediaName": "Shreya",
"mediaTitle": "Shreya uffu",
"mediaEmail": "[email protected]",
"mediaPhone": "9805441239",
"visibiltyOptOne": "RCRC Movement",
"visibiltyOptTwo": "Public"
}
Loading

0 comments on commit 3c77c49

Please sign in to comment.