mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add product for new personal plan
Summary: Adds the new personal plan as a product that will be available in the future. Can be enabled along with other plan-related via an environment variable. Test Plan: Browser tests and existing tests. Reviewers: jarek Reviewed By: jarek Subscribers: dsagal Differential Revision: https://phab.getgrist.com/D3533
This commit is contained in:
@@ -105,6 +105,17 @@ export const exampleOrgs = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Charonland',
|
||||
workspaces: [
|
||||
{
|
||||
name: 'Home',
|
||||
docs: []
|
||||
}
|
||||
],
|
||||
// Some tests check behavior on new free personal plans.
|
||||
product: 'personalFree',
|
||||
},
|
||||
{
|
||||
name: 'Chimpyland',
|
||||
workspaces: [
|
||||
@@ -122,6 +133,17 @@ export const exampleOrgs = [
|
||||
name: 'Kiwiland',
|
||||
workspaces: []
|
||||
},
|
||||
{
|
||||
name: 'Hamland',
|
||||
workspaces: [
|
||||
{
|
||||
name: 'Home',
|
||||
docs: []
|
||||
},
|
||||
],
|
||||
// Some tests check behavior on legacy free personal plans.
|
||||
product: 'starter',
|
||||
},
|
||||
{
|
||||
name: 'EmptyWsOrg',
|
||||
domain: 'blanky',
|
||||
@@ -223,6 +245,7 @@ const exampleUsers: {[user: string]: {[org: string]: string}} = {
|
||||
Fish: 'editors'
|
||||
},
|
||||
Charon: {
|
||||
Charonland: 'owners',
|
||||
NASA: 'guests',
|
||||
Horizon: 'guests',
|
||||
Pluto: 'viewers',
|
||||
@@ -231,7 +254,9 @@ const exampleUsers: {[user: string]: {[org: string]: string}} = {
|
||||
Abyss: 'owners',
|
||||
},
|
||||
// User Ham has two-factor authentication enabled on staging/prod.
|
||||
Ham: {},
|
||||
Ham: {
|
||||
Hamland: 'owners',
|
||||
},
|
||||
// User support@ owns a workspace "Examples & Templates" in its personal org. It can be shared
|
||||
// with everyone@ to let all users see it (this is not done here to avoid impacting all tests).
|
||||
Support: { Supportland: 'owners' },
|
||||
|
||||
@@ -2435,10 +2435,6 @@ export async function setWidgetUrl(url: string) {
|
||||
await waitForServer();
|
||||
}
|
||||
|
||||
export async function toggleNewDeal(on = true) {
|
||||
await driver.executeScript(`NEW_DEAL.set(${on ? 'true' : 'false'});`);
|
||||
}
|
||||
|
||||
} // end of namespace gristUtils
|
||||
|
||||
stackWrapOwnMethods(gristUtils);
|
||||
|
||||
Reference in New Issue
Block a user