Skip to content

Commit

Permalink
Testing 20
Browse files Browse the repository at this point in the history
  • Loading branch information
THEBOSS0369 committed Dec 30, 2024
1 parent b28dff5 commit b19198f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/e2e/spec/tonedear.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ function runTests (driver, modes) {

it('Navigate from main page to Android & iOS section', async function () {
// Check for Dialog Box and click any Approve Button in subsequent dialog box
try {
const activeAlertModal = await driver.findElement(By.css('.modal[style*="display: block"]'));
if (activeAlertModal) {
// console.log('Found active alert modal');
const approveButton = await driver.findElement(By.id('approveConfirm'));
await approveButton.click();
}
} catch (e) {
// Do nothing
console.log('Modal not found within the timeout. Continuing test...');
}
// try {
// const activeAlertModal = await driver.findElement(By.css('.modal[style*="display: block"]'));
// if (activeAlertModal) {
// // console.log('Found active alert modal');
// const approveButton = await driver.findElement(By.id('approveConfirm'));
// await approveButton.click();
// }
// } catch (e) {
// // Do nothing
// console.log('Modal not found within the timeout. Continuing test...');
// }

// Switch to the iframe if the content is inside 'articleContent'
await driver.switchTo().frame('articleContent');
Expand Down

0 comments on commit b19198f

Please sign in to comment.