Skip to content

Commit

Permalink
[FIX] Adapt discovery to recent changes in OpenUI5 (#319)
Browse files Browse the repository at this point in the history
With SAP/openui5@b8569e7, the set of possible 'signatures' of testsuites has been extended in OpenUI5. The discovery needs to be adapted to this extended set.
  • Loading branch information
codeworrior authored Jun 10, 2021
1 parent 7fd75f2 commit 0059cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/discovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
// check for an existing test page and check for test suite or page
getFile(oTestPageConfig.fullpage).then(function(sData) {
if (/(?:window\.suite\s*=|function\s*suite\s*\(\s*\)\s*{)/.test(sData) ||
(/data-sap-ui-testsuite/.test(sData) &&
!/sap\/ui\/test\/starter\/run-test/.test(sData)) ) {
(/data-sap-ui-testsuite/.test(sData) && !/sap\/ui\/test\/starter\/runTest/.test(sData)) ||
/sap\/ui\/test\/starter\/createSuite/.test(sData)) {
// console.log("execute page ", sTestPage);

const frame = document.createElement("iframe");
Expand Down

0 comments on commit 0059cfc

Please sign in to comment.