Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotests: Macro: Monomers from the Library on the canvas, their connection points and preview tooltips #3827

Open
AlexeyGirin opened this issue Jan 3, 2024 · 0 comments

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Jan 3, 2024

Description:
These bunch of tests validates that system correctly save every build-in monomer (Peptide, Sugar, Base, Phosphates) from our Library to ket/mol file, able to load it back and correctly show them on canvas (name, shape, color), shows correct number or connections and shows correct preview tooltip (and it works the same - from ket/mol and from library)

Test case 1:

data-testid values for every peptide could be obtained here peptides-data-testid.txt

Switch to Macromolecules view
Open Peptides tab
For each %Peptides% from list: peptides-data-testid.txt
	Clear canvas
	Put on the canvas peptide with data-testid = %Peptides%
	Center monomer on the screen
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Save canvas to ket file
	Save canvas to mol file
	Clear canvas
	Load it back from ket
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Clear canvas
	Load it back from mol
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas

Test case 2:

Switch to Macromolecules view
Open RNA tab
Open Presets section
For each %RNA% from list: ("A_A_R_P", "C_C_R_P", "G_G_R_P", T_T_R_P", "U_U_R_P")
	Clear canvas
	Put on the canvas peptide with data-testid = %RNA%
	Center monomer on the screen
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Save canvas to ket file
	Save canvas to mol file
	Clear canvas
	Load it back from ket
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Clear canvas
	Load it back from mol
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas

Test case 3:

data-testid values for every sugar could be obtained here: sugars-data-testid.txt

Switch to Macromolecules view
Open RNA tab
Open Sugars section
For each %Sugar% from list: sugars-data-testid.txt
	Clear canvas
	Put on the canvas peptide with data-testid = %Sugar%
	Center monomer on the screen
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Save canvas to ket file
	Save canvas to mol file
	Clear canvas
	Load it back from ket
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Clear canvas
	Load it back from mol
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas

Test case 4:

data-testid values for every base could be obtained here: bases-data-testid.txt

Switch to Macromolecules view
Open RNA tab
Open Bases section
For each %Base% from list: bases-data-testid.txt
	Clear canvas
	Put on the canvas peptide with data-testid = %Base%
	Center monomer on the screen
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Save canvas to ket file
	Save canvas to mol file
	Clear canvas
	Load it back from ket
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Clear canvas
	Load it back from mol
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas

Test case 5:

data-testid values for every phosphate could be obtained here: phosphates-data-testid.txt

Switch to Macromolecules view
Open RNA tab
Open Phosphates section
For each %Phosphate% from list: phosphates-data-testid.txt
	Clear canvas
	Put on the canvas peptide with data-testid = %Phosphate%
	Center monomer on the screen
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Save canvas to ket file
	Save canvas to mol file
	Clear canvas
	Load it back from ket
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Clear canvas
	Load it back from mol
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas

Test case 6:

Switch to Macromolecules view
Open CHEM tab
For each %CHEMS% from list: ("Test-6-Ch___Test-6-AP-Chem", "A6OH___6-amino-hexanol", "Az___Azide", "EG___Ethylene Glycol", "MCC___4-(N-maleimidomethyl)cyclohexane-1-carboxylate", "PEG2___Diethylene Glycol", "SMCC___SMCC linker from Pierce", "SMPEG2___SM(PEG)2 linker from Pierce", "SS3___Dipropanol-disulfide", "hxy___Hexynyl alcohol", "sDBL___Symmetric Doubler")
	Clear canvas
	Put on the canvas peptide with data-testid = %CHEMS%
	Center monomer on the screen
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Save canvas to ket file
	Save canvas to mol file
	Clear canvas
	Load it back from ket
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
	Clear canvas
	Load it back from mol
	Hover mouse over monomer until Preview tooltip appears
	Validate canvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants