-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into andres/HJ-250
- Loading branch information
Showing
159 changed files
with
9,539 additions
and
4,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Clients | ||
|
||
The clients directory houses all front-end packages and shared code amongst clients, and also includes e2e tests. | ||
|
||
See the [UI Contribution Guide](http://localhost:8000/fides/development/ui/overview/) for more information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,11 @@ describe("System management with Plus features", () => { | |
cy.wait("@getDictSystem"); | ||
cy.getByTestId("input-dpo").should("have.value", "[email protected]"); | ||
cy.getByTestId("tab-Data uses").click(); | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(500); | ||
cy.getByTestId("tab-Information").click(); | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(500); | ||
cy.getByTestId("tab-Data uses").click(); | ||
cy.getByTestId("confirmation-modal").should("not.exist"); | ||
}); | ||
|
@@ -460,4 +464,44 @@ describe("System management with Plus features", () => { | |
}); | ||
}); | ||
}); | ||
|
||
describe("tab navigation", () => { | ||
it("updates URL hash when switching tabs", () => { | ||
cy.visit(`${SYSTEM_ROUTE}/configure/demo_analytics_system#information`); | ||
cy.location("hash").should("eq", "#information"); | ||
|
||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(500); | ||
cy.getByTestId("tab-Data uses").click(); | ||
cy.location("hash").should("eq", "#data-uses"); | ||
|
||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(500); | ||
cy.getByTestId("tab-Data flow").click(); | ||
cy.location("hash").should("eq", "#data-flow"); | ||
|
||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(500); | ||
cy.getByTestId("tab-Integrations").click(); | ||
cy.location("hash").should("eq", "#integrations"); | ||
|
||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(500); | ||
cy.getByTestId("tab-History").click(); | ||
cy.location("hash").should("eq", "#history"); | ||
}); | ||
|
||
it("loads correct tab directly based on URL hash", () => { | ||
// Visit page with specific hash | ||
cy.visit(`${SYSTEM_ROUTE}/configure/demo_analytics_system#data-uses`); | ||
|
||
// Verify correct tab is active | ||
cy.getByTestId("tab-Data uses").should( | ||
"have.attr", | ||
"aria-selected", | ||
"true", | ||
); | ||
cy.location("hash").should("eq", "#data-uses"); | ||
}); | ||
}); | ||
}); |
67 changes: 67 additions & 0 deletions
67
clients/admin-ui/cypress/fixtures/systems/system_disabled_integration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"fides_key": "disabled_postgres_system", | ||
"organization_fides_key": "default_organization", | ||
"tags": [], | ||
"name": "A system with adisabled Postgres integration", | ||
"description": "", | ||
"meta": null, | ||
"fidesctl_meta": null, | ||
"system_type": "", | ||
"egress": null, | ||
"ingress": null, | ||
"privacy_declarations": [], | ||
"administrating_department": "Not defined", | ||
"vendor_id": null, | ||
"previous_vendor_id": null, | ||
"vendor_deleted_date": null, | ||
"dataset_references": [], | ||
"processes_personal_data": true, | ||
"exempt_from_privacy_regulations": false, | ||
"reason_for_exemption": null, | ||
"uses_profiling": false, | ||
"legal_basis_for_profiling": [], | ||
"does_international_transfers": false, | ||
"legal_basis_for_transfers": [], | ||
"requires_data_protection_assessments": false, | ||
"dpa_location": null, | ||
"dpa_progress": null, | ||
"privacy_policy": null, | ||
"legal_name": "", | ||
"legal_address": "", | ||
"responsibility": [], | ||
"dpo": "", | ||
"joint_controller_info": null, | ||
"data_security_practices": "", | ||
"cookie_max_age_seconds": null, | ||
"uses_cookies": false, | ||
"cookie_refresh": false, | ||
"uses_non_cookie_access": false, | ||
"legitimate_interest_disclosure_url": null, | ||
"cookies": [], | ||
"created_at": "2024-12-03T15:21:25.496095Z", | ||
"connection_configs": { | ||
"name": "asdasd_postgres", | ||
"key": "asdasd_postgres", | ||
"description": "", | ||
"connection_type": "postgres", | ||
"access": "write", | ||
"created_at": "2024-12-03T15:22:04.816975Z", | ||
"updated_at": "2024-12-03T15:33:16.990741Z", | ||
"disabled": true, | ||
"last_test_timestamp": null, | ||
"last_test_succeeded": null, | ||
"saas_config": null, | ||
"secrets": { | ||
"host": "host.docker.internal", | ||
"port": 6432, | ||
"username": "asdasd", | ||
"password": "**********", | ||
"dbname": "postgres_example", | ||
"db_schema": "", | ||
"ssh_required": false | ||
}, | ||
"authorized": false, | ||
"enabled_actions": null | ||
}, | ||
"data_stewards": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.