Skip to content

Commit f758f8d

Browse files
Fix logout in cypress tests
issue: documentacao-e-tarefas/desenvolvimento_e_infra#1080 Signed-off-by: carlos@lepidus.com.br Signed-off-by: thiago@lepidus.com.br
1 parent f12d50c commit f758f8d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cypress/tests/Test2_createTranslation.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ describe('DOI For Translation - Creation of submission translation', function ()
8080
cy.contains('Choose the primary language of the new submission');
8181
cy.get('select[name="translationLocale"]').select('fr_CA');
8282
cy.get('#createTranslationModal button:contains("Create")').click();
83+
84+
cy.logout();
8385
});
8486
it('Access translation submission and updates title', function() {
8587
cy.login('dbarnes', null, 'publicknowledge');

cypress/tests/Test3_workflowFeatures.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ describe('DOI For Translation - Workflow features', function () {
5858

5959
cy.get('#titleAbstract button:contains("Save")').click();
6060
cy.get('#titleAbstract span[role="status"]').contains('Saved');
61+
62+
cy.logout();
6163
});
6264
it('Reference to translated submission on translation submission workflow', function () {
6365
cy.login('dbarnes', null, 'publicknowledge');

0 commit comments

Comments
 (0)