Skip to content

Allow demo users to connect to any institution in non-production environments#312

Open
mwclemy wants to merge 2 commits intomasterfrom
cmwimo/CT-2063
Open

Allow demo users to connect to any institution in non-production environments#312
mwclemy wants to merge 2 commits intomasterfrom
cmwimo/CT-2063

Conversation

@mwclemy
Copy link
Copy Markdown
Collaborator

@mwclemy mwclemy commented Apr 16, 2026

No description provided.

@wesrisenmay-mx
Copy link
Copy Markdown
Collaborator

Why do we want this feature?

@mwclemy
Copy link
Copy Markdown
Collaborator Author

mwclemy commented Apr 16, 2026

Why do we want this feature?

We only want to restrict demo users from connecting to live institutions (i.e. production institutions). In lower environments, they should still be able to connect to institutions like Gringotts in Sand and QA, or any other institutions in those environments. This also helps with testing in testdrive either manually or through automated tests.

@wesrisenmay-mx
Copy link
Copy Markdown
Collaborator

Why do we want this feature?

We only want to restrict demo users from connecting to live institutions (i.e. production institutions). In lower environments, they should still be able to connect to institutions like Gringotts in Sand and QA, or any other institutions in those environments. This also helps with testing in testdrive either manually or through automated tests.

Won't this break the E2E test you wrote, because it will only block things in prod?

@mwclemy
Copy link
Copy Markdown
Collaborator Author

mwclemy commented Apr 16, 2026

Why do we want this feature?

We only want to restrict demo users from connecting to live institutions (i.e. production institutions). In lower environments, they should still be able to connect to institutions like Gringotts in Sand and QA, or any other institutions in those environments. This also helps with testing in testdrive either manually or through automated tests.

Won't this break the E2E test you wrote, because it will only block things in prod?

Yeah, I will have to update the E2E test as well. Otherwise it would fail.

Copy link
Copy Markdown
Collaborator

@ash-wright123 ash-wright123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - but you will need to update the cypress tests that were testing for this is there way to test with prod to make sure that it still works the way we want it to?

@mwclemy
Copy link
Copy Markdown
Collaborator Author

mwclemy commented Apr 16, 2026

LGTM - but you will need to update the cypress tests that were testing for this is there way to test with prod to make sure that it still works the way we want it to?

Testing in prod would be difficult unless done manually through testdrive, since we don’t run our E2E tests against prod, which isn’t ideal. I’m still thinking through a better way to cover this with automated tests in Sand and QA.

@wesrisenmay-mx
Copy link
Copy Markdown
Collaborator

LGTM - but you will need to update the cypress tests that were testing for this is there way to test with prod to make sure that it still works the way we want it to?

Testing in prod would be difficult unless done manually through testdrive, since we don’t run our E2E tests against prod, which isn’t ideal. I’m still thinking through a better way to cover this with automated tests in Sand and QA.

Clement and I discussed via huddle yesterday. Ideally we don't have to make this change. I don't know what all it takes to create a duplicate institution, but if we could create a duplicate of MXCU that is a demo institution, then it's easy to run E2E tests and test things locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants