zulip/corporate/tests
Mateusz Mandera ba50faced4 remote_billing: Fix /self-hosted-billing/ handling for desktop app.
When you click "Plan management", the desktop app opens
/self-hosted-billing/ in your browser immediately. So that works badly
if you're already logged into another account in the browser, since that
session will be used and it may be for a different user account than in
the desktop app, causing unintended behavior.

The solution is to replace the on click behavior for "Plan management"
in the desktop app case, to instead make a request to a new endpoint
/json/self-hosted-billing, which provides the billing access url in a
json response. The desktop app takes that URL and window.open()s it (in
the browser). And so a remote billing session for the intended user will
be obtained.
2024-01-15 21:32:00 -08:00
..
stripe_fixtures test_stripe: Add end-to-end test for RemoteRealm billing flow. 2023-12-15 09:08:48 -08:00
__init__.py billing: Move billing tests from zilencer to corporate. 2018-10-01 15:44:02 -07:00
test_remote_billing.py remote_billing: Fix /self-hosted-billing/ handling for desktop app. 2024-01-15 21:32:00 -08:00
test_remote_counts.py python: Consistently use from…import for datetime. 2023-12-05 12:01:18 -08:00
test_stripe.py models: Extract zerver.models.realms. 2024-01-05 10:32:54 -05:00