Skip to content

Commit

Permalink
Merge pull request #1354 from BLSQ/cypress-fail
Browse files Browse the repository at this point in the history
Cypress Forms and users fail
  • Loading branch information
kemar authored Jun 4, 2024
2 parents f873521 + f38046b commit 0725802
Show file tree
Hide file tree
Showing 5 changed files with 396 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const PermissionSwitch: React.FunctionComponent<Props> = ({
if (!settings.row.original.group) {
return (
<Switch
className="permission-checkbox"
data-test="permission-checkbox"
id={`permission-checkbox-${settings.row.original[codeName]}`}
checked={Boolean(
permissions.find(up => {
Expand Down
232 changes: 232 additions & 0 deletions hat/assets/js/cypress/fixtures/permissions/grouped.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
{
"permissions": {
"forms": [
{
"id": 380,
"name": "Formulaires",
"codename": "iaso_forms"
},
{
"id": 469,
"name": "Soumissions",
"codename": "iaso_submissions"
},
{
"id": 532,
"name": "Editer soumissions",
"codename": "iaso_update_submission"
},
{
"id": 622,
"name": "Completeness stats",
"codename": "iaso_completeness_stats"
}
],
"org_units": [
{
"id": 383,
"name": "Unités d'organistations",
"codename": "iaso_org_units"
},
{
"id": 384,
"name": "Correspondances sources",
"codename": "iaso_links"
},
{
"id": 399,
"name": "Sources",
"codename": "iaso_sources"
},
{
"id": 669,
"name": "Org unit types",
"codename": "iaso_org_unit_types"
},
{
"id": 674,
"name": "Org unit groups",
"codename": "iaso_org_unit_groups"
},
{
"id": 694,
"name": "Write data source",
"codename": "iaso_write_sources"
},
{
"id": 782,
"name": "Org unit change request review",
"codename": "iaso_org_unit_change_request_review"
},
{
"id": 828,
"name": "Editer le Registre",
"codename": "iaso_registry_write"
},
{
"id": 829,
"name": "Lire le Registre",
"codename": "iaso_registry_read"
}
],
"entities": [
{
"id": 575,
"name": "Entities",
"codename": "iaso_entities"
},
{
"id": 640,
"name": "Workflows",
"codename": "iaso_workflows"
},
{
"id": 655,
"name": "Read Entity duplicates",
"codename": "iaso_entity_duplicates_read"
},
{
"id": 656,
"name": "Write Entity duplicates",
"codename": "iaso_entity_duplicates_write"
},
{
"id": 693,
"name": "Write entity type",
"codename": "iaso_entity_type_write"
}
],
"dhis2_mapping": [
{
"id": 381,
"name": "Correspondances avec DHIS2",
"codename": "iaso_mappings"
}
],
"external_storage": [
{
"id": 588,
"name": "Strorages",
"codename": "iaso_storages"
}
],
"planning": [
{
"id": 540,
"name": "Attributions",
"codename": "iaso_assignments"
}
],
"embedded_links": [
{
"id": 435,
"name": "Pages",
"codename": "iaso_pages"
},
{
"id": 695,
"name": "Write page",
"codename": "iaso_page_write"
}
],
"polio": [
{
"id": 464,
"name": "Polio",
"codename": "iaso_polio"
},
{
"id": 483,
"name": "Polio config",
"codename": "iaso_polio_config"
},
{
"id": 553,
"name": "Budget Polio",
"codename": "iaso_polio_budget"
},
{
"id": 641,
"name": "Budget Polio Admin",
"codename": "iaso_polio_budget_admin"
},
{
"id": 696,
"name": "Polio Vaccine Authorizations Read Only",
"codename": "iaso_polio_vaccine_authorizations_read_only"
},
{
"id": 697,
"name": "Polio Vaccine Authorizations Admin",
"codename": "iaso_polio_vaccine_authorizations_admin"
},
{
"id": 709,
"name": "Polio notifications",
"codename": "iaso_polio_notifications"
},
{
"id": 710,
"name": "Polio Vaccine Supply Chain Read",
"codename": "iaso_polio_vaccine_supply_chain_read"
},
{
"id": 711,
"name": "Polio Vaccine Supply Chain Write",
"codename": "iaso_polio_vaccine_supply_chain_write"
},
{
"id": 783,
"name": "Polio Vaccine Stock Management Read",
"codename": "iaso_polio_vaccine_stock_management_read"
},
{
"id": 784,
"name": "Polio Vaccine Stock Management Write",
"codename": "iaso_polio_vaccine_stock_management_write"
}
],
"admin": [
{
"id": 385,
"name": "Utilisateurs",
"codename": "iaso_users"
},
{
"id": 398,
"name": "Projets",
"codename": "iaso_projects"
},
{
"id": 408,
"name": "Tâches",
"codename": "iaso_data_tasks"
},
{
"id": 539,
"name": "Equipes",
"codename": "iaso_teams"
},
{
"id": 650,
"name": "Reports",
"codename": "iaso_reports"
},
{
"id": 675,
"name": "Manage user roles",
"codename": "iaso_user_roles"
},
{
"id": 692,
"name": "Users managed",
"codename": "iaso_users_managed"
},
{
"id": 708,
"name": "modules",
"codename": "iaso_modules"
}
]
}
}
Loading

0 comments on commit 0725802

Please sign in to comment.