@ubox-tools/deploy-xperience 1.1.16 → 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.
- package/deploy.js +4 -1
- 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 = [
|
|
@@ -688,8 +690,9 @@ async function injectSource(page, proxy) {
|
|
|
688
690
|
|
|
689
691
|
const navPromise = page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 15000 }).catch(() => null);
|
|
690
692
|
await clickByText(page, 'Save and back to app');
|
|
691
|
-
await navPromise;
|
|
693
|
+
const navResult = await navPromise;
|
|
692
694
|
await sleep(1000);
|
|
695
|
+
console.log(` [source] URL after save: ${page.url()} (navigated: ${navResult ? 'yes' : 'no'})`);
|
|
693
696
|
}
|
|
694
697
|
|
|
695
698
|
async function deployApp(page, appName, projectName, { noAssets = false, noSource = false } = {}) {
|
package/package.json
CHANGED