Skip to content

Commit

Permalink
fix for link click (#3402)
Browse files Browse the repository at this point in the history
  • Loading branch information
ostapwd committed Mar 28, 2024
1 parent 97e3816 commit b5502ac
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -268,7 +268,14 @@ export default {

clickJobIdInThirdPane() {
this.verifyThirdPaneExportJobExist();
cy.do(KeyValue('Job ID').clickLink());
cy.window().document().then((doc) => {
doc.addEventListener('click', () => {
// this adds a listener that reloads your page
// after 5 seconds from clicking the download button
setTimeout(() => { doc.location.reload(); }, 5000);
});
cy.do(KeyValue('Job ID').clickLink());
});
// Wait for the file to download
cy.wait(5000);
},
Expand Down

0 comments on commit b5502ac

Please sign in to comment.