Skip to content

Commit bb9b7f8

Browse files
authored
new cypress test to add a tag (#611)
1 parent eb42d87 commit bb9b7f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cypress/integration/1_new_engagement_spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,14 @@ describe('new engagement', () => {
202202
'You have successfully launched your engagement!'
203203
);
204204
});
205+
206+
it('Add tag', () => {
207+
208+
cy.get('[data-testid=edit-icon]').click().wait(1000);
209+
cy.get('input').type('e2e tag').get('button').contains('Create').click().get('button').contains('Save').click();
210+
211+
cy.wait('@saveEngagement').its('response.statusCode').should('eq', 200);
212+
213+
cy.get('[data-testid=category-chip]').contains('e2e tag').should('exist');
214+
});
205215
});

0 commit comments

Comments
 (0)