Skip to content

Commit

Permalink
clean up and exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mayarajan3 committed Jun 17, 2024
1 parent 49140d7 commit 1fc46dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion extensions/integration_testing/node_script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function runPlaywrightTasks() {
await runPlaywrightScript('playwright_save_all.ts');
await runPlaywrightScript('playwright_save_combo.ts');
await runPlaywrightScript('playwright_load.ts');
devProcess.kill();
process.exit(0);
} catch (error) {
console.error('Error during Playwright tasks:', error);
}
Expand Down
14 changes: 0 additions & 14 deletions extensions/integration_testing/playwright_load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
});
const page = await context.newPage();

// Navigate to 'Create' page

// Try connecting to the server in a loop with delay
// let connected = false;
// for (let i = 0; i < 120; i++) { // Retry up to 10 times
// try {
// await page.goto('http://localhost:8602/', { waitUntil: 'networkidle', timeout: 6000 });
// connected = true;
// break;
// } catch (e) {
// console.log('Connection failed, retrying...');
// await delay(5000); // Wait for 5 seconds before retrying
// }
// }
await page.goto('http://localhost:8602/');
await page.click('text=File');

Expand Down
2 changes: 1 addition & 1 deletion extensions/integration_testing/playwright_save_all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));

// Wait for the editor to load
//await page.waitForSelector('.blocklyBlockCanvas');
await page.waitForTimeout(2000);
await page.waitForTimeout(3000);
// Add the extension
const addExtension = await page.$('[title="Add Extension"]');
if (addExtension) {
Expand Down

0 comments on commit 1fc46dc

Please sign in to comment.