1+ /* eslint-disable no-restricted-imports */
12import { appScaffoldFixture as test } from '../setup/app.js'
23import { requireEnv } from '../setup/env.js'
34import { expect } from '@playwright/test'
4- import { joinPath } from '@shopify/cli-kit/node/path'
55import * as fs from 'fs'
6+ import * as path from 'path'
67
78test . describe ( 'App basic flow (no extensions)' , ( ) => {
89 test ( 'init, dev, execute, quit, clean, deploy, versions, config link, deploy to secondary' , async ( {
@@ -38,7 +39,7 @@ test.describe('App basic flow (no extensions)', () => {
3839 )
3940 const executeOutput = executeResult . stdout + executeResult . stderr
4041 expect ( executeResult . exitCode , '‼️ Step 3 - app execute failed' ) . toBe ( 0 )
41- expect ( executeOutput , '‼️ Step 3 - app execute: response missing "shop" field' ) . toContain ( 'shop' )
42+ expect ( executeOutput , '‼️ Step 3 - app execute: response missing "shop" field' ) . toContain ( '" shop" ' )
4243
4344 // Step 4: Press q to quit the dev server
4445 dev . sendKey ( 'q' )
@@ -58,7 +59,7 @@ test.describe('App basic flow (no extensions)', () => {
5859 }
5960
6061 // Step 6: Deploy the primary app
61- const versionTag = `e2e-v -${ Date . now ( ) } `
62+ const versionTag = `QA-E2E-1st -${ Date . now ( ) } `
6263 const deployResult = await cli . exec (
6364 [
6465 'app' ,
@@ -91,7 +92,7 @@ test.describe('App basic flow (no extensions)', () => {
9192 // that file already exists → overwrite confirmation prompt hangs.
9293 // (--config and --client-id are mutually exclusive flags, so we can't pass both directly.)
9394 fs . writeFileSync (
94- joinPath ( appScaffold . appDir , 'shopify.app.secondary.toml' ) ,
95+ path . join ( appScaffold . appDir , 'shopify.app.secondary.toml' ) ,
9596 `client_id = "${ env . secondaryClientId } "\n` ,
9697 )
9798
@@ -106,7 +107,7 @@ test.describe('App basic flow (no extensions)', () => {
106107 expect ( configLinkExitCode , '‼️ Step 8 - app config link failed' ) . toBe ( 0 )
107108
108109 // Step 9: Deploy to the secondary app using the linked config file
109- const secondaryVersionTag = `e2e-secondary-v -${ Date . now ( ) } `
110+ const secondaryVersionTag = `QA-E2E-2nd -${ Date . now ( ) } `
110111 const secondaryDeployResult = await cli . exec (
111112 [
112113 'app' ,
0 commit comments