@ubox-tools/deploy-xperience 1.1.15 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/deploy.js +10 -2
  2. package/package.json +1 -1
package/deploy.js CHANGED
@@ -661,11 +661,13 @@ async function configureParameters(page, params) {
661
661
 
662
662
  async function injectSource(page, proxy) {
663
663
  console.log(' [source] Injecting source files...');
664
+ console.log(` [source] URL: ${page.url()}`);
664
665
  await clickByText(page, 'Source');
665
666
  await sleep(1500);
666
667
 
667
668
  await clickByText(page, 'Edit source');
668
669
  await sleep(3000);
670
+ console.log(` [source] URL after Edit source: ${page.url()}`);
669
671
 
670
672
  // Tab label → filename
671
673
  const tabs = [
@@ -686,8 +688,11 @@ async function injectSource(page, proxy) {
686
688
  await sleep(500);
687
689
  }
688
690
 
691
+ const navPromise = page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 15000 }).catch(() => null);
689
692
  await clickByText(page, 'Save and back to app');
690
- await sleep(3000);
693
+ const navResult = await navPromise;
694
+ await sleep(1000);
695
+ console.log(` [source] URL after save: ${page.url()} (navigated: ${navResult ? 'yes' : 'no'})`);
691
696
  }
692
697
 
693
698
  async function deployApp(page, appName, projectName, { noAssets = false, noSource = false } = {}) {
@@ -1131,7 +1136,10 @@ async function main() {
1131
1136
 
1132
1137
  try {
1133
1138
  // Always accept any confirm() dialogs the studio may show during deployment
1134
- page.on('dialog', async d => { await d.accept(); });
1139
+ page.on('dialog', async d => {
1140
+ console.log(` [dialog] type=${d.type()} msg="${d.message()}" → accepted`);
1141
+ await d.accept();
1142
+ });
1135
1143
 
1136
1144
  // Phase 1 — Login
1137
1145
  await login(page, email, password);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubox-tools/deploy-xperience",
3
- "version": "1.1.15",
3
+ "version": "1.1.18",
4
4
  "description": "Deploy a Ubox experience to studio.ubox.world",
5
5
  "bin": { "deploy-xperience": "./deploy.js" },
6
6
  "dependencies": { "puppeteer": "*" },