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: Connection rules for Phosphate monomers #3808

Closed
AlexeyGirin opened this issue Dec 26, 2023 · 0 comments · Fixed by #4517
Closed

Autotests: Macro: Connection rules for Phosphate monomers #3808

AlexeyGirin opened this issue Dec 26, 2023 · 0 comments · Fixed by #4517

Comments

@AlexeyGirin
Copy link
Collaborator

Description:
These bunch of tests validates that system able to establish connections for Phosphate monomers
Related implementation tasks: #2925, #2883, #2334
Required monomers could be taken here: Monomers.zip

Test case1:

Phosphate could be connected with the phosphate through R2-R1 as well as R1-R1 or R2-R2.
User should be asked which attachment points should be used to establish a bond.

For each %phosphateType% from list: (R1) - Left only 
                                    (R2) - Right only
                                    (R3) - Side only 
                                    (R1,R2) - R3 gap 
                                    (R1,R3) - R2 gap 
                                    (R2,R3) - R1 gap 
                                    (R3,R4)          
                                    (R1,R2,R3)       
                                    (R1,R3,R4)       
                                    (R2,R3,R4)       
                                    (R3,R4,R5)       
                                    (R1,R2,R3,R4)    
                                    (R1,R3,R4,R5)    
                                    (R2,R3,R4,R5)    
                                    (R1,R2,R3,R4,R5) 
	For each %phosphateType2% from list: (R1) - Left only 
        	                            (R2) - Right only
                	                    (R3) - Side only 
                        	            (R1,R2) - R3 gap 
                                	    (R1,R3) - R2 gap 
	                                    (R2,R3) - R1 gap 
	                                    (R3,R4)          
	                                    (R1,R2,R3)       
	                                    (R1,R3,R4)       
	                                    (R2,R3,R4)       
	                                    (R3,R4,R5)       
	                                    (R1,R2,R3,R4)    
	                                    (R1,R3,R4,R5)    
	                                    (R2,R3,R4,R5)    
	                                    (R1,R2,R3,R4,R5) 
		clear canvas
		Establish connection between %phosphateType%(center) and %phosphateType%(center)
		Validate canvas (Select Connection Points dialog opened)

Test case2:

User can connect any phospshate to any phosphate using point-to-point way, can save it to ket file, can save it to mol file, can load it from mol and ket

For each %phosphateType% from list: (R1) - Left only 
                                    (R2) - Right only
                                    (R3) - Side only 
                                    (R1,R2) - R3 gap 
                                    (R1,R3) - R2 gap 
                                    (R2,R3) - R1 gap 
                                    (R3,R4)          
                                    (R1,R2,R3)       
                                    (R1,R3,R4)       
                                    (R2,R3,R4)       
                                    (R3,R4,R5)       
                                    (R1,R2,R3,R4)    
                                    (R1,R3,R4,R5)    
                                    (R2,R3,R4,R5)    
                                    (R1,R2,R3,R4,R5) 
	For each %phosphateType2% from list: (R1) - Left only 
        	                            (R2) - Right only
                	                    (R3) - Side only 
                        	            (R1,R2) - R3 gap 
                                	    (R1,R3) - R2 gap 
	                                    (R2,R3) - R1 gap 
	                                    (R3,R4)          
	                                    (R1,R2,R3)       
	                                    (R1,R3,R4)       
	                                    (R2,R3,R4)       
	                                    (R3,R4,R5)       
	                                    (R1,R2,R3,R4)    
	                                    (R1,R3,R4,R5)    
	                                    (R2,R3,R4,R5)    
	                                    (R1,R2,R3,R4,R5) 
	For each %ConnectionPoint% (avaliable connections of %phosphateType%)
			For each %ConnectionPoint2% (avaliable connections of %phosphateType2%)
				clear canvas
				Establish connection between %phosphateType%(%ConnectionPoint%) and %phosphateType%(%ConnectionPoint2%)
				Validate canvas (connection should appear)
				Save to ket
				Save to mol
				Load from ket
				validate canvas
				Load from mol
				validate canvas
@AlexeyGirin AlexeyGirin added this to the Autotests milestone Dec 26, 2023
@AlexeyGirin AlexeyGirin linked a pull request Apr 23, 2024 that will close this issue
9 tasks
AlexeyGirin added a commit that referenced this issue Apr 24, 2024
* 3808 - connection rules for phosphate monomers

* Some tests disabled

* Extra correction

* one more

* Global Timeout introduced

* Number of retries - 0

* Restart browser solution

* eslint-disable prettier/prettier removing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants