Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Jun 27, 2024
1 parent 218fe37 commit f80e1ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion services/apis/fence/fenceTasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,15 @@ module.exports = {
}
// }
} else {
I.seeTextEquals('Bad Request', 'h2') || I.seeTextEquals('Unauthorized', 'h2');
try {
I.seeTextEquals('Bad Request', 'h2');
} catch (err) {
try {
I.seeTextEquals('Unauthorized', 'h2');
} catch (err) {
console.log('Expected to see Bad Request or Unauthorized on the page');
}
}
}
// I.saveScreenshot('consent_auth_code_flow.png');
const urlStr = await I.grabCurrentUrl();
Expand Down

0 comments on commit f80e1ea

Please sign in to comment.