Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cypress (v9 => v10) #3066

Merged
merged 20 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Take a screenshot of the weighting dashboard
  • Loading branch information
felipeelia committed Oct 19, 2022
commit f3b960136bc1bb5ac5114d6cd288bee762dd42a9
23 changes: 8 additions & 15 deletions tests/cypress/integration/features/search/weighting.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,17 @@ describe('Post Search Feature - Weighting Functionality', () => {
cy.get('.hentry').should('contain.text', 'Test ElasticPress 1');

cy.visitAdminPage('admin.php?page=elasticpress-weighting');
cy.get('#post-post_title-enabled')
.click()
.then(() => {
cy.get('#submit')
.click()
.then(() => {
cy.visit('/?s=Test+ElasticPress+1');
cy.get('.hentry').should('not.exist');
});
});
cy.get('#post-post_title-enabled').click();
cy.screenshot();
cy.get('#submit').click();

cy.visit('/?s=Test+ElasticPress+1');
cy.get('.hentry').should('not.exist');

// Reset setting.
cy.visitAdminPage('admin.php?page=elasticpress-weighting');
cy.get('#post-post_title-enabled')
.click()
.then(() => {
cy.get('#submit').click();
});
cy.get('#post-post_title-enabled').click();
cy.get('#submit').click();
});

it('Can increase post_title weighting and influence search results', () => {
Expand Down