The purpose of testing is to perform assertion, Test case 2 (Test Nosy) and Test case 3 (Test Nosy1) fails to perform any assertions on the selected items in user selection popup for nosy list.
Solution - collect the selected users from click() to read element.get_attribute("data-id") in a list.
At the end of the selections get the input value from the accumulator input and assert self.assert_same(input.get_attribute("value", ",".join(selected_items))
and once this passes do 1 more assertion with reading nosy input and asserting with the selected_items as given.
If the test suit is ran in headfull environment i.e. you looking at your screen then check items were getting selected, items were there, and input did get the items then assertions can be skipped.
but if these are ran as headless env (CI/CD) we need assertion statements to verify that items were selected
The purpose of testing is to perform assertion, Test case 2 (Test Nosy) and Test case 3 (Test Nosy1) fails to perform any assertions on the selected items in user selection popup for nosy list.
Solution - collect the selected users from click() to read element.get_attribute("data-id") in a list.
At the end of the selections get the input value from the accumulator input and assert
self.assert_same(input.get_attribute("value", ",".join(selected_items))
and once this passes do 1 more assertion with reading nosy input and asserting with the selected_items as given.
If the test suit is ran in headfull environment i.e. you looking at your screen then check items were getting selected, items were there, and input did get the items then assertions can be skipped.
but if these are ran as headless env (CI/CD) we need assertion statements to verify that items were selected