Delete Batches

As a LedgerSMB user I want to search for previously created voucher batches and delete them.

Delete an unapproved batch

screenshot
screenshot (1)
pre step:
a standard test company success
screenshot
screenshot (1)
pre step:
a logged in admin user
loading URL: http://proxy:80/login.pl
loading URL: http://proxy:80/login.pl (1)
waiting for condition
getting tag name
find body.done-parsing
waiting for condition
pattern: body.done-parsing
found 1 elements for body.done-parsing scheme, css - PageObject::App::Login (body)
waiting for condition (PageObject::App::Login=HASH(0x55e9587e3130))
find body.done-parsing (PageObject::App::Login=HASH(0x55e9587e3130))
waiting for condition (1)
find body.done-parsing
waiting for condition
pattern: body.done-parsing
found 1 elements for body.done-parsing scheme, css - PageObject::App::Login (body)
waiting for condition (PageObject::App::Login=HASH(0x55e9587e2ae8))
find body.done-parsing (PageObject::App::Login=HASH(0x55e9587e2ae8))
find *labeled
waiting for condition
pattern: *labeled
found 1 elements for *labeled text, User Name - Weasel::Widgets::HTML::Input (input)
waiting for condition (Weasel::Widgets::HTML::Input=HASH(0x55e9587d40f0))
find *labeled (Weasel::Widgets::HTML::Input=HASH(0x55e9587d40f0))
clicking element
clicking element (1)
clearing input element
clearing input element (1)
sending keys: 1
sending keys: 1 (1)
find *labeled
waiting for condition
pattern: *labeled
found 1 elements for *labeled text, Password - Weasel::Widgets::HTML::Input (input)
waiting for condition (Weasel::Widgets::HTML::Input=HASH(0x55e95871d3b8))
find *labeled (Weasel::Widgets::HTML::Input=HASH(0x55e95871d3b8))
clicking element
clicking element (1)
clearing input element
clearing input element (1)
sending keys: 1
sending keys: 1 (1)
find *labeled
waiting for condition
pattern: *labeled
found 1 elements for *labeled text, Company - Weasel::Widgets::HTML::Input (input)
waiting for condition (Weasel::Widgets::HTML::Input=HASH(0x55e958732f78))
find *labeled (Weasel::Widgets::HTML::Input=HASH(0x55e958732f78))
clicking element
clicking element (1)
clearing input element
clearing input element (1)
sending keys: 1
sending keys: 1 (1)
find *button
waiting for condition
pattern: *button
found 1 elements for *button text, Login - Weasel::Element (span)
waiting for condition (Weasel::Element=HASH(0x55e9587d47c8))
find *button (Weasel::Element=HASH(0x55e9587d47c8))
clicking element
clicking element (1)
waiting for condition
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
found tag with name body
getting tag name
find body.done-parsing
waiting for condition
pattern: body.done-parsing
found 1 elements for body.done-parsing scheme, css - PageObject::App (body)
waiting for condition (PageObject::App=HASH(0x55e95884e380))
find body.done-parsing (PageObject::App=HASH(0x55e95884e380))
waiting for condition (1)
find body.done-parsing
waiting for condition
pattern: body.done-parsing
found 1 elements for body.done-parsing scheme, css - PageObject::App (body)
waiting for condition (PageObject::App=HASH(0x55e95884e5f0))
success
screenshot
screenshot (1)
pre step:
batches with these properties: success
screenshot
screenshot (1)
pre step:
I navigate the menu and select the item at "Transaction Approval > Batches"
find *app-menu
waiting for condition
pattern: *app-menu
found 1 elements for *app-menu - PageObject::App::Menu (div)
waiting for condition (PageObject::App::Menu=HASH(0x55e9587adf18))
find *app-menu (PageObject::App::Menu=HASH(0x55e9587adf18))
find //*[@id='top_menu']
waiting for condition
pattern: //*[@id='top_menu']
found 1 elements for //*[@id='top_menu'] - Weasel::Element (div)
waiting for condition (Weasel::Element=HASH(0x55e9587cb5f0))
find //*[@id='top_menu'] (Weasel::Element=HASH(0x55e9587cb5f0))
waiting for condition
find .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Transaction Approval']]
waiting for condition
pattern: .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Transaction Approval']]
found 1 elements for .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Transaction Approval']] - Weasel::Element (div)
waiting for condition (Weasel::Element=HASH(0x55e9587cbc80))
find .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Transaction Approval']] (Weasel::Element=HASH(0x55e9587cbc80))
waiting for condition (Weasel::Element=HASH(0x55e9587cbc80))
element attribute 'id'
element attribute 'id' (dijit__TreeNode_5)
find //*[@id='dijit__TreeNode_5_label']
waiting for condition
pattern: //*[@id='dijit__TreeNode_5_label']
found 1 elements for //*[@id='dijit__TreeNode_5_label'] - Weasel::Element (span)
waiting for condition (Weasel::Element=HASH(0x55e9587afbe8))
find //*[@id='dijit__TreeNode_5_label'] (Weasel::Element=HASH(0x55e9587afbe8))
element text
element text (Transaction Approval)
clicking element
clicking element (1)
waiting for condition
find .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Batches']]
waiting for condition
pattern: .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Batches']]
found 1 elements for .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Batches']] - Weasel::Element (div)
waiting for condition (Weasel::Element=HASH(0x55e9587af690))
find .//div[contains(@class, 'dijitTreeNodeContainer')]//div[contains(@class, 'dijitTreeNode') and .//span[@role='treeitem' and text()='Batches']] (Weasel::Element=HASH(0x55e9587af690))
waiting for condition (Weasel::Element=HASH(0x55e9587af690))
element attribute 'id'
element attribute 'id' (dijit__TreeNode_23)
find //*[@id='dijit__TreeNode_23_label']
waiting for condition
pattern: //*[@id='dijit__TreeNode_23_label']
found 1 elements for //*[@id='dijit__TreeNode_23_label'] - Weasel::Element (span)
waiting for condition (Weasel::Element=HASH(0x55e9587aff60))
find //*[@id='dijit__TreeNode_23_label'] (Weasel::Element=HASH(0x55e9587aff60))
element text
element text (Batches)
clicking element
clicking element (1)
find *app-main
waiting for condition
pattern: *app-main
found 1 elements for *app-main - PageObject::App::Main (div)
waiting for condition (PageObject::App::Main=HASH(0x55e9587cb1b8))
find *app-main (PageObject::App::Main=HASH(0x55e9587cb1b8))
waiting for condition
find #maindiv.done-parsing
waiting for condition
pattern: #maindiv.done-parsing
found 1 elements for #maindiv.done-parsing scheme, css - PageObject::App::Main (div)
waiting for condition (PageObject::App::Main=HASH(0x55e9587cb428))
find #maindiv.done-parsing (PageObject::App::Main=HASH(0x55e9587cb428))
query is_displayed
query is_displayed (true)
waiting for condition (1)
pattern: ./*
success
screenshot
screenshot (1)
pre step:
I should see the Search Batches screen
waiting for condition
getting tag name
found tag with name div
success
screenshot
screenshot (1)
pre step:
I press "Search"
find *button
waiting for condition
pattern: *button
found 1 elements for *button text, Search - Weasel::Element (span)
waiting for condition (Weasel::Element=HASH(0x55e9587b05c8))
find *button (Weasel::Element=HASH(0x55e9587b05c8))
clicking element
success
screenshot
screenshot (1)
pre step:
I should see the Batch Search Report screen
waiting for condition
getting tag name
pattern: ./*
found 1 elements for ./* - PageObject::App::Search::ReportDynatable (form)
success
screenshot
screenshot (1)
pre step:
I expect the report to contain 2 rows
getting tag name
found tag with name form
pattern: .//table/tbody/tr
found 3 elements for .//table/tbody/tr - Weasel::Element (tr) - Weasel::Element (tr) - Weasel::Element (tr)
element attribute 'class'
success
screenshot
screenshot (1)
pre step:
I select the row where "Batch Number" is "B-1003"
getting tag name
found tag with name form
pattern: .//table/thead/tr/th | .//table/thead/tr/td
found 8 elements for .//table/thead/tr/th | .//table/thead/tr/td - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
pattern: .//table/tbody/tr
found 3 elements for .//table/tbody/tr - Weasel::Element (tr) - Weasel::Element (tr) - Weasel::Element (tr)
pattern: ./td | ./th
found 8 elements for ./td | ./th - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
pattern: ./td | ./th
found 8 elements for ./td | ./th - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
pattern: ./td | ./th
found 8 elements for ./td | ./th - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
find ./td/div/input[@type="checkbox"]
waiting for condition
pattern: ./td/div/input[@type="checkbox"]
found 1 elements for ./td/div/input[@type="checkbox"] - Weasel::Widgets::HTML::Selectable (input)
waiting for condition (Weasel::Widgets::HTML::Selectable=HASH(0x55e9587b5af8))
find ./td/div/input[@type="checkbox"] (Weasel::Widgets::HTML::Selectable=HASH(0x55e9587b5af8))
element attribute 'checked'
element attribute 'checked'
clicking element
success
screenshot
screenshot (1)
pre step:
I press "Delete"
find *button
waiting for condition
pattern: *button
found 1 elements for *button text, Delete - Weasel::Element (span)
waiting for condition (Weasel::Element=HASH(0x55e9587c6618))
find *button (Weasel::Element=HASH(0x55e9587c6618))
clicking element
success
screenshot
screenshot (1)
pre step:
I should see the Search Batches screen
waiting for condition
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
found tag with name form
getting tag name
pattern: ./*
found 1 elements for ./* - PageObject::App::TransactionApproval::Batches (div)
success
screenshot
screenshot (1)
pre step:
I press "Search"
find *button
waiting for condition
pattern: *button
found 1 elements for *button text, Search - Weasel::Element (span)
waiting for condition (Weasel::Element=HASH(0x55e9587a8ca8))
find *button (Weasel::Element=HASH(0x55e9587a8ca8))
clicking element
success
screenshot
screenshot (1)
pre step:
I should see the Batch Search Report screen
waiting for condition
getting tag name
pattern: ./*
found 1 elements for ./* - PageObject::App::Search::ReportDynatable (form)
success
screenshot
screenshot (1)
pre step:
I expect the report to contain 1 rows
getting tag name
found tag with name form
pattern: .//table/tbody/tr
found 2 elements for .//table/tbody/tr - Weasel::Element (tr) - Weasel::Element (tr)
element attribute 'class'
success
screenshot
screenshot (1)
pre step:
I expect the 'Description' report column to contain 'Batch-4' for Batch Number 'B-1004'
getting tag name
found tag with name form
pattern: .//table/thead/tr/th | .//table/thead/tr/td
found 8 elements for .//table/thead/tr/th | .//table/thead/tr/td - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th) - Weasel::Element (th)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
pattern: .//table/tbody/tr
found 2 elements for .//table/tbody/tr - Weasel::Element (tr) - Weasel::Element (tr)
pattern: ./td | ./th
found 8 elements for ./td | ./th - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
pattern: ./td | ./th
found 8 elements for ./td | ./th - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td) - Weasel::Element (td)
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
element text (ARRAY(0x55e956371da0))
element text
success