Skip to content

Commit

Permalink
Fix Item name
Browse files Browse the repository at this point in the history
  • Loading branch information
gokultw committed Oct 17, 2023
1 parent 8c3caf1 commit dc582c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bahmni-e2e-common-flows/tests/bahmniInventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ step("Enter Random Item Details in Load Stock popup", async function () {
});
async function enterItemName(itemName, index) {
await write(itemName, into($("//*[@id='stock-table-container']//tbody/tr[" + index + "]/td[2]//input")));
await scrollTo($("//*[normalize-space()='" + itemName + "'and @role = 'option']"));
await waitFor(() => $("//*[normalize-space()='" + itemName + "'and @role = 'option']").isVisible());
await click($("//*[normalize-space()='" + itemName + "'and @role = 'option']"));
await scrollTo($("//*[normalize-space()='" + itemName + "' and @role = 'option']"));
await waitFor(() => $("//*[normalize-space()='" + itemName + "' and @role = 'option']").exists());
await click($("//*[normalize-space()='" + itemName + "' and @role = 'option']"));
}
async function enterBatchNo(batchNo, index) {
await write(batchNo, into($("//*[@id='stock-table-container']//tbody/tr[" + index + "]/td[3]//input")));
Expand Down

0 comments on commit dc582c7

Please sign in to comment.