Skip to content

Commit 3cdeb36

Browse files
github-automation-metabaseMetabase Docs bot
andauthored
[auto] adding content to cypress-tokens-cleanup->master (#363)
Co-authored-by: Metabase Docs bot <[email protected]>
1 parent c9861f2 commit 3cdeb36

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

_docs/master/developers-guide/e2e-tests.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,17 @@ Prior to running Cypress against Metabase® Enterprise Edition™, set `MB_EDITI
223223

224224
**Enterprise instance will start without a premium token!**
225225

226-
If you want to test premium features (feature flags), valid tokens need to be available to all Cypress tests. We achieve this by prefixing environment variables with `CYPRESS_`.
227-
You should provide two tokens that correspond to the `EE/PRO` self-hosted (all features enabled) and `STARTER` Cloud (no features enabled) Metabase plans. For more information, please see [Metabase pricing page](/pricing/). (note: only a few tests require the no features token)
226+
If you want to test premium features (feature flags), valid tokens need to be available to all Cypress tests.
227+
You should provide 4 tokens:
228228

229-
- `CYPRESS_ALL_FEATURES_TOKEN`
230-
- `CYPRESS_NO_FEATURES_TOKEN`
229+
- MB_ALL_FEATURES_TOKEN: all feature enabled, including new feature not released yet to customers
230+
- MB_STARTER_CLOUD_TOKEN: only 'hosting' feature enabled to simulate the starter plan on cloud
231+
- MB_PRO_CLOUD_TOKEN: PRO features enabled + 'hosting' to simulate the pro plan on cloud
232+
- MB_PRO_SELF_HOSTED_TOKEN: PRO features but no 'hosting' to simulate the pro self-hosted plan
231233

232-
```
233-
MB_EDITION=ee ENTERPRISE_TOKEN=xxxxxx yarn test-cypress
234-
```
234+
You can configure these via ENVs or via the `cypress.env.json` file (see `cypress.env.json.example` for an example).
235+
236+
For more information, please see [Metabase pricing page](/pricing/).
235237

236238
If you navigate to the `/admin/settings/license` page, the license input field should display the active token. Be careful when sharing screenshots!
237239

_site/docs/master/developers-guide/e2e-tests.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5019,16 +5019,19 @@ <h2 id="running-cypress-tests-against-metabase-enterprise-edition">Running Cypre
50195019

50205020
<p><strong>Enterprise instance will start without a premium token!</strong></p>
50215021

5022-
<p>If you want to test premium features (feature flags), valid tokens need to be available to all Cypress tests. We achieve this by prefixing environment variables with <code class="language-plaintext highlighter-rouge">CYPRESS_</code>.
5023-
You should provide two tokens that correspond to the <code class="language-plaintext highlighter-rouge">EE/PRO</code> self-hosted (all features enabled) and <code class="language-plaintext highlighter-rouge">STARTER</code> Cloud (no features enabled) Metabase plans. For more information, please see <a href="/pricing/">Metabase pricing page</a>. (note: only a few tests require the no features token)</p>
5022+
<p>If you want to test premium features (feature flags), valid tokens need to be available to all Cypress tests.
5023+
You should provide 4 tokens:</p>
50245024

50255025
<ul>
5026-
<li><code class="language-plaintext highlighter-rouge">CYPRESS_ALL_FEATURES_TOKEN</code></li>
5027-
<li><code class="language-plaintext highlighter-rouge">CYPRESS_NO_FEATURES_TOKEN</code></li>
5026+
<li>MB_ALL_FEATURES_TOKEN: all feature enabled, including new feature not released yet to customers</li>
5027+
<li>MB_STARTER_CLOUD_TOKEN: only ‘hosting’ feature enabled to simulate the starter plan on cloud</li>
5028+
<li>MB_PRO_CLOUD_TOKEN: PRO features enabled + ‘hosting’ to simulate the pro plan on cloud</li>
5029+
<li>MB_PRO_SELF_HOSTED_TOKEN: PRO features but no ‘hosting’ to simulate the pro self-hosted plan</li>
50285030
</ul>
50295031

5030-
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>MB_EDITION=ee ENTERPRISE_TOKEN=xxxxxx yarn test-cypress
5031-
</code></pre></div></div>
5032+
<p>You can configure these via ENVs or via the <code class="language-plaintext highlighter-rouge">cypress.env.json</code> file (see <code class="language-plaintext highlighter-rouge">cypress.env.json.example</code> for an example).</p>
5033+
5034+
<p>For more information, please see <a href="/pricing/">Metabase pricing page</a>.</p>
50325035

50335036
<p>If you navigate to the <code class="language-plaintext highlighter-rouge">/admin/settings/license</code> page, the license input field should display the active token. Be careful when sharing screenshots!</p>
50345037

0 commit comments

Comments
 (0)