Skip to content

Commit

Permalink
Merge branch 'develop' into add/qm-vip-concat
Browse files Browse the repository at this point in the history
  • Loading branch information
rinatkhaziev authored Jul 26, 2024
2 parents 1221ae8 + 9a4423e commit 238171a
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog-summary-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: softprops/[email protected].6
- uses: softprops/[email protected].8
with:
generate_release_notes: true
tag_name: ${{ steps.id-generator.outputs.id }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
uses: actions/[email protected]

- name: Initialize CodeQL
uses: github/codeql-action/[email protected].12
uses: github/codeql-action/[email protected].14
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/[email protected].12
uses: github/codeql-action/[email protected].14
3 changes: 3 additions & 0 deletions .github/workflows/search-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:
${{ github.workspace }}/tests/cypress/videos/
${{ github.workspace }}/tests/cypress/logs/
${{ github.workspace }}/cypress/results/
${{ github.workspace }}/tests/search/e2e/screenshots/
${{ github.workspace }}/tests/search/e2e/videos/
${{ github.workspace }}/tests/search/e2e/logs/
- name: Stop Elasticsearch
if: always()
Expand Down
6 changes: 3 additions & 3 deletions __tests__/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"cypress-file-upload": "^5.0.8",
"cypress-multi-reporters": "^1.6.1",
"eslint-plugin-cypress": "^3.0.3",
"husky": "9.0.11",
"husky": "9.1.3",
"jsdoc": "^4.0.0",
"lint-staged": "^15.0.1",
"mocha-junit-reporter": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion search/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
require_once __DIR__ . '/includes/functions/utils.php';
require_once __DIR__ . '/includes/classes/class-search.php';

if ( \Automattic\VIP\Search\Search::are_es_constants_defined() ) {
if ( \Automattic\VIP\Search\Search::are_es_constants_defined() && ! wp_installing() ) {
$search_plugin = \Automattic\VIP\Search\Search::instance();

require_once __DIR__ . '/search-dev-tools/search-dev-tools.php';
Expand Down
6 changes: 3 additions & 3 deletions tests/search/e2e/integration/features/related-posts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ describe('Related Posts Feature', () => {
* On the last post insert a Related Posts block.
*/
cy.openBlockInserter();
cy.getBlocksList().should('contain.text', 'Related Posts (ElasticPress)');
cy.insertBlock('Related Posts (ElasticPress)');
cy.getBlocksList().should('contain.text', 'Related Posts');
cy.insertBlock('Related Posts');

/**
* Verify that the block is inserted into the editor, and contains the
Expand All @@ -71,7 +71,7 @@ describe('Related Posts Feature', () => {
/**
* Set the block to display 2 related posts.
*/
cy.get('@block').click();
cy.get('@block').click('topRight');
cy.openBlockSettingsSidebar();
cy.get('input[type="number"][aria-label="Number of items"]').clearThenType('2');

Expand Down
8 changes: 6 additions & 2 deletions tests/search/e2e/support/commands/block-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ Cypress.Commands.add('openBlockSettingsSidebar', () => {
cy.get('.edit-widgets-header__actions button[aria-label="Settings"]').click();
cy.get('.edit-widgets-sidebar__panel-tab').contains('Block').click();
} else {
cy.get('.edit-post-header__settings button[aria-label="Settings"]').click();
cy.get('.edit-post-sidebar__panel-tabs').contains('Block').click();
cy.get('.editor-header__settings button[aria-label="Settings"]').then(($btn) => {
if (!$btn.hasClass('is-pressed')) {
$btn.click();
}
cy.get('.editor-sidebar__panel-tabs').contains('Block').click();
});
}
});
});
Expand Down

0 comments on commit 238171a

Please sign in to comment.