Skip to content

Commit

Permalink
fix(fe-lib): transform milliseconds to seconds correctly for TestLibr…
Browse files Browse the repository at this point in the history
…ary (#443)
  • Loading branch information
Siolto committed Mar 15, 2023
1 parent 5b0d371 commit a7f840f
Show file tree
Hide file tree
Showing 2 changed files with 3,926 additions and 38,387 deletions.
3 changes: 2 additions & 1 deletion client-side-js/testLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ async function initOPA(pageObjectConfig, browserInstance) {

sap.ui.test.Opa5.createPageObjects(pageConfig)
// use the same timouts and intervals that wdi5 uses
debugger
sap.ui.test.Opa.extendConfig({
timeout: new Date(window.wdi5.waitForUI5Options.timeout).getSeconds(), // convert milliseconds to seconds
timeout: Math.floor(window.wdi5.waitForUI5Options.timeout / 1000), // convert milliseconds to seconds
pollingInterval: window.wdi5.waitForUI5Options.interval
})

Expand Down
Loading

0 comments on commit a7f840f

Please sign in to comment.