accessPolicyPage.listSelectAll
retrieves a list of elements, even if there is only one element. This is why it returns an array with one element, resulting in the message
Expected [ 'false' ] to equal 'false'
.
In order to verify this, you can loop through the returned elements and check each element's attribute aria-checked
like so:
var elements = accessPolicyPage.listSelectAll;
elements.forEach(function(singleElement) {
expect(singleElement.getAttribute("aria-checked")).toEqual("false");
});
Alternatively, you can simplify it like this:
expect((accessPolicyPage.listSelectAll).getAttribute("aria-checked")[0]).toEqual("false");
Please give it a try and if you still need assistance, feel free to leave a comment and I will provide further support.