From f712be008dde9da8b0efad8624995ee235853499 Mon Sep 17 00:00:00 2001 From: Zev Isert Date: Tue, 9 Oct 2018 17:35:29 -0700 Subject: [PATCH] fix: `.project-loader` is now `.project-loading` (#13) --- bin/glitch-deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/glitch-deploy.js b/bin/glitch-deploy.js index 2b86d47..b83002a 100755 --- a/bin/glitch-deploy.js +++ b/bin/glitch-deploy.js @@ -95,9 +95,9 @@ const importGitHubRepo = require('../lib/import-github-repo') debug(`Opening https://glitch.com/edit/#!/${glitchInfo.appName}`) await state.page.goto(`https://glitch.com/edit/#!/${glitchInfo.appName}`) debug(`Editor is loading`) - // await state.page.waitForSelector('.project-loader.hidden') + await state.page.waitFor(() => { - return !!document.querySelector('.project-loader.hidden') + return !!document.querySelector('.project-loading.hidden') }) debug(`${glitchInfo.appName} opened`)