Skip to content

Commit

Permalink
Merge pull request #6050 from cfpb/draftables-cypress-fix
Browse files Browse the repository at this point in the history
Draftables Cypress Test Fix
  • Loading branch information
alexhoffman617 committed Sep 29, 2020
2 parents cbaa664 + 5188151 commit d6fd13d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/cypress/pages/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ export class AdminPage {
}

selectDocumentLink( text ) {
cy.get( '#id_q' ).type( text );
cy.get( '#id_q' ).invoke( 'val', text ).trigger( 'change' );
cy.get( '#id_q' ).type( ' ' );
cy.wait( 3000 );
cy.get( '.document-choice' ).contains( text ).click();
}
}

0 comments on commit d6fd13d

Please sign in to comment.