diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js index 9e2ea8516b..2a7c06a268 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js @@ -252,7 +252,7 @@ Then(/^I can perform the following publications$/, async function(table) { check = override ? newCount === 1 : newCount > pubCount; } if (check) { - pubCount = await page.publicationsCount; + pubCount = page.publicationsCount; } } }); diff --git a/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_page.js b/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_page.js index c8a498d228..253d823e37 100644 --- a/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_page.js +++ b/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_page.js @@ -88,8 +88,13 @@ export default class DocumentPage extends BasePage { } } if (pub) { - const pubText = await pub.$('div').getText(); - return parseInt(pubText.trim(), 10); + return parseInt( + pub + .$('div') + .getText() + .trim(), + 10, + ); } } return 0;