@@ -41,11 +41,12 @@ test('Launch Electron app, add clocking source, navigate to DSP block, configure
4141 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ; // Wait for 1 second
4242
4343 // Clicking OK to submit the clocking form
44- const okButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-ni1kz0 .ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid' ;
44+ const okButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-apn68 .ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid' ;
4545 const okButton = await window . waitForSelector ( okButtonSelector ) ;
4646 await okButton . click ( ) ;
4747 await new Promise ( ( resolve ) => setTimeout ( resolve , 2000 ) ) ; // Wait for the form to submit
4848
49+
4950 // Navigate to the DSP block
5051 const dspBlockSelector = '#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col2 > div.top-l2-col2-elem > div > div:nth-child(3) > div:nth-child(2) > div' ;
5152 const dspBlock = await window . waitForSelector ( dspBlockSelector ) ;
@@ -95,7 +96,7 @@ test('Launch Electron app, add clocking source, navigate to DSP block, configure
9596 // Take note of the DSP power generated (assuming it's shown in the UI somewhere, you can add the selector for DSP power if needed)
9697
9798 // Clicking OK to submit the DSP form
98- const dspOkButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-ni1kz0 .ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid' ;
99+ const dspOkButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-apn68 .ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid' ;
99100 const dspOkButton = await window . waitForSelector ( dspOkButtonSelector ) ;
100101 await dspOkButton . click ( ) ;
101102 await new Promise ( ( resolve ) => setTimeout ( resolve , 2000 ) ) ; // Wait for the form to submit
0 commit comments