diff --git a/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_publications.js b/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_publications.js index c57780bb43..9c6c0e42e8 100644 --- a/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_publications.js +++ b/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_publications.js @@ -31,7 +31,8 @@ export default class DocumentPublications extends BasePage { let index; for (let i = 0; i < rows.length; i++) { const row = rows[i]; - if (row.isVisible('nuxeo-data-table-cell a.path')) { + const isRowVisible = await row.isVisible('nuxeo-data-table-cell a.path'); + if (isRowVisible) { const foundPathEle = await row.$('nuxeo-data-table-cell a.path'); const foundPath = await foundPathEle.getText(); const foundPathLowerCase = await foundPath.trim().toLowerCase(); diff --git a/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_versions.js b/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_versions.js index f54fb571cd..66b6ec50ad 100644 --- a/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_versions.js +++ b/packages/nuxeo-web-ui-ftest/pages/ui/browser/document_versions.js @@ -95,7 +95,7 @@ export default class DocumentVersions extends BasePage { return true; } const listItems = await this.listItems; - const versionItem = await listItems.$('div[name="version-item"] .title') + const versionItem = await listItems.$('div[name="version-item"] .title'); await versionItem.waitForVisible(); const listItems1 = await this.listItems.$$('div[name="version-item"]'); const itemsTitle = await browser.$$('div[name="version-item"]').map((img) => img.$('.title').getText());