Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Aug 22, 2022
1 parent f842015 commit 59f81e4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/cypress/integration/features/comments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ describe('Comments Feature', () => {
cy.deactivatePlugin('woocommerce', 'wpCli');
});

it('Can sync approve anonymous comments when settings are disabled', () => {
it('Can sync approved anonymous comments when settings are disabled', () => {
cy.login();
cy.maybeEnableFeature('comments');

cy.visitAdminPage('options-discussion.php');

// disabled settings.
// disable settings.
cy.get('#require_name_email').uncheck();
cy.get('#comment_moderation').uncheck();
cy.get('#comment_previously_approved').uncheck();
Expand Down Expand Up @@ -183,5 +183,11 @@ describe('Comments Feature', () => {
// trash the comment
cy.visitAdminPage('edit-comments.php?comment_status=approved');
cy.get('.column-comment .trash a').first().click({ force: true });

// enable settings.
cy.get('#require_name_email').check();
cy.get('#comment_moderation').check();
cy.get('#comment_previously_approved').check();
cy.get('#submit').click();
});
});

0 comments on commit 59f81e4

Please sign in to comment.