Skip to content

Commit 394d994

Browse files
committed
e2e env cleanup
1 parent 26035cf commit 394d994

4 files changed

Lines changed: 7 additions & 12 deletions

File tree

packages/e2e/.env.example

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Required: Client ID of the primary test app (must be in the genghis account's org)
2-
# CI secret: E2E_CLIENT_ID
3-
SHOPIFY_FLAG_CLIENT_ID=
4-
51
# Required: Genghis account email for browser-based OAuth login
62
# CI secret: E2E_ACCOUNT_EMAIL
73
E2E_ACCOUNT_EMAIL=
@@ -14,6 +10,5 @@ E2E_ACCOUNT_PASSWORD=
1410
# CI secret: E2E_STORE_FQDN
1511
E2E_STORE_FQDN=
1612

17-
# Optional: Client ID of a secondary app for config link tests
18-
# CI secret: E2E_SECONDARY_CLIENT_ID
19-
E2E_SECONDARY_CLIENT_ID=
13+
# Required: dedicated e2e org ID
14+
E2E_ORG_ID=

packages/e2e/setup/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export async function createApp(ctx: {
4040
if (ctx.flavor) args.push('--flavor', ctx.flavor)
4141

4242
const result = await cli.execCreateApp(args, {
43-
// Disable color output and strip CLIENT_ID to prevent leaking from parent process.env
44-
env: {FORCE_COLOR: '0', SHOPIFY_FLAG_CLIENT_ID: undefined},
43+
env: {FORCE_COLOR: '0'},
4544
timeout: 5 * 60 * 1000,
4645
})
4746

packages/e2e/setup/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export const envFixture = base.extend<{}, {env: E2EEnv}>({
9595
NODE_OPTIONS: '',
9696
CI: '1',
9797
SHOPIFY_CLI_1P_DEV: undefined,
98+
SHOPIFY_FLAG_CLIENT_ID: undefined,
9899
}
99100

100101
if (storeFqdn) {

packages/e2e/tests/multi-config-dev.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ include_config_on_deploy = true
5454
fs.writeFileSync(path.join(appDir, 'shopify.app.staging.toml'), stagingToml)
5555
fs.mkdirSync(path.join(appDir, 'staging-ext'), {recursive: true})
5656

57-
// Start dev with -c staging. SHOPIFY_FLAG_CLIENT_ID must be unset
58-
// because --config and --client-id are mutually exclusive.
57+
// Start dev with -c staging.
58+
// --config and --client-id are mutually exclusive. CLIENT_ID is stripped globally in env.ts.
5959
const proc = await cli.spawn(
6060
['app', 'dev', '--path', appDir, '-c', 'staging', '--skip-dependencies-installation'],
61-
{env: {CI: '', SHOPIFY_FLAG_CLIENT_ID: undefined} as NodeJS.ProcessEnv},
61+
{env: {CI: ''}},
6262
)
6363

6464
try {

0 commit comments

Comments
 (0)