Skip to content

Commit 132612c

Browse files
Implement cypress test for interests filter
issue: documentacao-e-tarefas/desenvolvimento_e_infra#1164 Signed-off-by: carlos <carlos@lepidus.com.br>
1 parent 6ce2ae4 commit 132612c

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

cypress/tests/Test0_pluginSetup.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Enable Selection Of Reviewing Interests plugin', function () {
1717

1818
cy.get('tr#' + pluginRowId + ' a.show_extras').click();
1919
cy.get('a[id^=' + pluginRowId + '-settings-button]').click();
20-
cy.get('.pkp_modal_panel > :nth-child(1)').contains('Selection Field in Reviewing Interests Area');
20+
cy.get('.pkp_modal_panel > :nth-child(1)').contains('Selection of Review Interests');
2121
cy.waitJQuery();
2222
cy.get('a[id^=component-plugins-generic-selectionofreviewinginterests-controllers-grid-interestoptionsgrid-addOption-button-]').contains('Add option').click();
2323
cy.get('input[id^=optionName-]').should('be.visible');
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
describe('Filtering reviews by interests', function () {
2+
it('Accessing the interests filter', function () {
3+
cy.login('dbarnes', null, 'publicknowledge');
4+
cy.get('.listPanel__itemSubtitle:visible:contains("Finocchiaro: Arguments About Arguments")').first()
5+
.parent().parent().within(() => {
6+
cy.get('.pkpButton:contains("View")').click();
7+
});
8+
9+
cy.get('#ui-id-3').click();
10+
cy.get('a[id^=component-grid-users-reviewer-reviewergrid-addReviewer-button-]').click();
11+
cy.get('[description=""] > .listPanel > .listPanel__header > .pkpHeader > .pkpHeader__actions > .pkpButton').click();
12+
cy.get(':nth-child(7) > .pkpFilter > label > input').click();
13+
cy.contains('Adela Gallego');
14+
})
15+
});

0 commit comments

Comments
 (0)