File tree Expand file tree Collapse file tree
src/shared/libs/plugin-construct/assets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,6 +137,23 @@ export const script = async (
137137 // const serviceworker = await serviceWorkerPromise;
138138 registerWelcomeToConstructListener ( page , log )
139139
140+ // as soon as it appear, without blocking flow
141+ // ignore asking for update
142+ const notNowBtn = page . getByText ( 'Not now' )
143+ notNowBtn
144+ . waitFor ( {
145+ timeout : 0
146+ } )
147+ . then ( async ( ) => {
148+ return notNowBtn . click ( )
149+ } )
150+ . then ( ( ) => {
151+ log ( 'notNowBtn clicked' )
152+ } )
153+ . catch ( async ( ) => {
154+ log ( 'notNowBtn.click() failed' )
155+ } )
156+
140157 log ( 'after event' )
141158
142159 // if (addonsFolder) {
@@ -233,23 +250,6 @@ export const script = async (
233250 log ( 'progress' , `${ finalText * 100 } %` )
234251 } , 500 )
235252
236- // as soon as it appear, without blocking flow
237- // ignore asking for update
238- const notNowBtn = page . getByText ( 'Not now' )
239- notNowBtn
240- . waitFor ( {
241- timeout : 0
242- } )
243- . then ( async ( ) => {
244- return notNowBtn . click ( )
245- } )
246- . then ( ( ) => {
247- log ( 'notNowBtn clicked' )
248- } )
249- . catch ( async ( ) => {
250- log ( 'notNowBtn.click() failed' )
251- } )
252-
253253 registerInstallButtonListener ( page , log )
254254 registerWebglErrorListener ( page , log )
255255 registerMissingAddonErrorListener ( page , log )
You can’t perform that action at this time.
0 commit comments