Last active
          March 14, 2016 17:53 
        
      - 
      
 - 
        
Save adamrneary/a1cd81032bed762de1d6 to your computer and use it in GitHub Desktop.  
    Simple Nightwatch example facilitated by page objects
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | '[C469] Template-sets can be archived.'(client) { | |
| templateList | |
| .assert.elementPresent(rowId) | |
| .archiveTemplateSet(templateSetId, client) | |
| .assert.elementNotPresent(rowId) | |
| .navigateToArchived() | |
| .assert.elementPresent(rowId); | |
| }, | |
| '[C782] Template-sets can be unarchived.'(client) { | |
| templateList | |
| .navigateToArchived() | |
| .unarchiveTemplateSet(templateSetId, client) | |
| .assert.elementNotPresent(rowId) | |
| .navigateWithHeader() | |
| .assert.elementPresent(rowId); | |
| }, | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment