LiteSun commented on pull request #619:
URL: https://github.com/apache/apisix-dashboard/pull/619#issuecomment-719109644


   > just a proposal:define the dom selectors and test datas separately as 
variables, It may be better to maintain later.
   > 
   > A test case for a page contains three parts, domselectors, test datas, and 
test steps.
   > 
   > * The domselectors maybe changed as the layout of the page changed or UI 
frame changed;
   > * Test datas are also likely to change when data source changed;
   > * The test steps are relatively stable
   > 
   > e.g:
   > 
   > ```js
   > const domSelectors = {
   >     inputUserName: '#control-ref_username',
   >     inputPassWord: '#control-ref_password',
   >     buttonLogin: '.ant-btn-lg',
   >     notificationLogin: '.ant-notification-notice-description',
   >     ...
   > };
   > const loginFailedDatas = {
   >     userName: 'admin',
   >     passWord: '123456'
   > };
   > const loginSuccessDatas = {
   >    userName: 'admin',
   >    passWord: 'admin'
   > };
   > ```
   
   I couldn't agree with you more and will update soon.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to