1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 # This file is used to define methods reusable by two or more integration tests
8 # check_checkboxes_state asserts that the page holds at least one
9 # checkbox matching 'selector', and that all matching checkboxes
10 # are in state 'checkbox_status' (i.e. checked if true, unchecked otherwise)
11 def assert_checkboxes_state(selector, checkbox_status, msg=nil)
12 assert page.has_selector?(selector)
13 page.all(selector).each do |checkbox|
14 assert(checkbox.checked? == checkbox_status, msg)