Skip to content

Test Nosy and Test Nosy1 fails to perform any assertions #61

@malvpatel

Description

@malvpatel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions