Skip to content

Autotests: Allow for modification of the attachment points in the monomer creation wizard (part 2) #7984

@AlexeyGirin

Description

@AlexeyGirin

Source task(s):

  • Allow for modification of the attachment points in the monomer creation wizard #7441

  • Check that for an already set APs the user can Delete the AP, by clicking on x

  • Check that for an already set APs the user can change the R-group number of the AP

  • Check that for an already set APs the user can pick any R-number (R1, ... ,R8), and it obvious what numbers are already in use

  • Check that for an already set APs the user can change the LGA atom by picking an an option form a drop-down: H, OH, NH2, F, Cl, Br, I (in that order)

  • Check that start defining a new AP by clicking on + Add new AP: After + Add new AP is clicked, the user gets an instruction message in the error/warning area: "Select an attachment atom or a leaving group atom on the structure." that can be dismissed by clicking OK

  • Check that all potential AAs are LGAs are highlighted after clicking on + Add new AP (their marking are visible not only on hover), and the marking for already set APs disappear

  • Check that if the user left-clicks on a potential LGA, that LGA is added to the attributes panel section for the new AP

  • Check that if the user left-clicks on a potential AA that is connected only to one potential LGA and has no implicit hydrogens, that LGA is is added to the attributes panel section for the new AP

  • Check that if the user left-clicks on a potential AA that is connected to no potential LGAs but has implicit hydrogens, a hydrogen is added (see req. 3.2.2.4.), becomes an LGA, and is added to the attributes panel section for the new AP

  • Check that if the user clicks on a potential AA that can have multiple LGAs, a panel to pick an LGA opens (see reqs. 3.2.2.5. and 3.2.2.5.1.). And after the LGA is chosen it is added to the attributes panel section for the new AP

  • Check that the users can pick the R-number before or after defining the LGA and the AA

  • Check that if the user closes the flyout that opens after clicking on + Add new AP before all AP elements are loaded into it/picked (LGA, R-number), the AP information is lost

  • Check that the APs in the Attributes panel are ordered by their R-number (for the ones loaded into the wizard), and any additional ones, after them in the order of creation

  • Check that if no APs were set for a monomer, and the user clicks on Submit in the wizard, an error message appears in the error/warning area: "The monomer must have at least one attachment point."

  • Check that if there are multiple APs with the same number, and the user clicks on Submit in the wizard, an error message appears in the error/warning area: "Only one attachment point can have the same number."

  • Check that if the R-number collection is incorrect (all R-numbers must be in order with R1 and R2 able to be skipped), and the user clicks on Submit in the wizard, an error message appears in the error/warning area: "Attachment point numbers must be in order, but R1 and R2 may be skipped."

  • Check that if the user clicks on Cancel all monomer information is removed (no changes to the structure, and no set properties are saved)

  • Check that if the user clicks on Summit, the new monomer gets saved to the library, the previously selected structure becomes an expanded monomer, and the monomer is selected

  • Check that after the wizard is exited, the user gets a conformation message: "The monomer was successfully added to the library.", that can be dismissed by clicking OK

  • Verify that after changing the APs, they can be saved in a KET file and reopened with the same APs as assigned in the monomer wizard

  • Verify that after changing the APs, they can be saved in a MOL V3000 file and reopened with the same APs as assigned in the monomer wizard

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions