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

Updated Synonyms UI #3814

Merged
merged 23 commits into from
Apr 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
Reset synonyms before each attempt
  • Loading branch information
felipeelia committed Apr 10, 2024
commit 056d2d3eee053a82a8e4c6984af5c019778f04fc
22 changes: 12 additions & 10 deletions tests/cypress/integration/features/search/synonyms.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ describe('Post Search Feature - Synonyms Functionality', () => {
before(() => {
cy.wpCliEval(
`
$ep_synonyms = get_posts(
[
'post_type' => 'ep-synonym',
'numberposts' => 999,
]
);
foreach( $ep_synonyms as $synonym ) {
wp_delete_post( $synonym->ID, true );
}

$ep_synonyms_tests = get_posts(
[
'post_type' => 'any',
Expand Down Expand Up @@ -70,6 +60,18 @@ describe('Post Search Feature - Synonyms Functionality', () => {
*/
beforeEach(() => {
cy.login();
cy.wpCliEval(
`
$ep_synonyms = get_posts(
[
'post_type' => 'ep-synonym',
'numberposts' => 999,
]
);
foreach( $ep_synonyms as $synonym ) {
wp_delete_post( $synonym->ID, true );
}`,
);
});

/**
Expand Down
Loading