Skip to content

Commit ee5eb6c

Browse files
fixes cypress test 3
issue: documentacao-e-tarefas/desenvolvimento_e_infra#1080 Signed-off-by: carlos@lepidus.com.br Signed-off-by: thiago@lepidus.com.br
1 parent 64f6f60 commit ee5eb6c

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

cypress/tests/Test4_publicSiteFeatures.spec.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,10 @@ describe('DOI For Translation - Public site features', function () {
8888
});
8989
});
9090

91-
cy.get('.title a:contains("' + title['fr_CA'] + '")')
92-
.parent().parent().within(() => {
93-
cy.contains('div', 'This article is a translation in Français (Canada) of the article:').within(() => {
94-
cy.contains('a', title['en_US']);
95-
});
96-
});
97-
91+
cy.setLocale('pt_BR');
9892
cy.get('.title a:contains("' + title['pt_BR'] + '")')
9993
.parent().parent().within(() => {
100-
cy.contains('div', 'This article is a translation in Português (Brasil) of the article:').within(() => {
94+
cy.contains('div', 'Este artigo é uma tradução em Português (Brasil) do artigo:').within(() => {
10195
cy.contains('a', title['en_US']);
10296
});
10397
});

0 commit comments

Comments
 (0)