Skip to content

Commit

Permalink
Revert "ftest publication fix test"
Browse files Browse the repository at this point in the history
This reverts commit 5ad57d2.
  • Loading branch information
alokhyland authored Nov 25, 2024
1 parent d1b86f2 commit af251b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
});
Expand Down
9 changes: 7 additions & 2 deletions packages/nuxeo-web-ui-ftest/pages/ui/browser/document_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af251b1

Please sign in to comment.