linagora / esn-frontend-calendar

Calendar SPA for the OpenPaaS Suite - https://open-paas.org/
Other
8 stars 15 forks source link

Analyze end to end testing tools (cypress+protractor) #634

Open asmaNode opened 2 years ago

asmaNode commented 2 years ago

Goal :

Find the corresponding tool to openpaas for end to end testing .The idea is to test the application from the end user's experience by simulating the real user scenario and validating the issue by writing the different test cases

Testing openpaas with Protractor:

+Allow async and await to handle asynchronous execution tests +Use almost of angular selectors +Allow test with remote adddresses

-Built on the top of WebdriverJS and Selenium server -Can't input specific character in simple input ( case of email with @ , this error is caused by the last version of chrome driver) -Need to downgrade the chromer driver -Angular announced the deprecation of their E2E testing tool protractor.

Testing openpaas with cypress: +Run on a browser +More easy to implement test cases +More faster +Debug dirrectly from developper tools, see the demo below : cypressdebugger

-Use only CSS selectors -Can't open link from different domain (case of links in description ).

Demo testing links note's event:

The senario of test is to be sure of there is a href link in description box of an event .We cant access to the link

https://user-images.githubusercontent.com/43316837/155492493-a266cd7e-a538-4598-83ce-4cefbd9a2801.mp4