MM-57354: Fix elastic search e2e tests (#27670)

Этот коммит содержится в:
yasserfaraazkhan
2024-07-17 05:03:40 +05:30
коммит произвёл GitHub
родитель fb790a860b
Коммит d71e5e4f4e
9 изменённых файлов: 20 добавлений и 19 удалений

Просмотреть файл

@@ -40,15 +40,14 @@ function enableElasticSearch() {
// # Enable elastic search via the API
cy.apiUpdateConfig({
ElasticsearchSettings: {
EnableAutocomplete: true,
EnableIndexing: true,
EnableSearching: true,
Sniff: false,
},
} as Cypress.AdminConfig);
// # Navigate to the elastic search setting page
cy.visit('/admin_console/environment/elasticsearch');
cy.get('[data-testid="enableIndexing"] > .col-sm-8 > :nth-child(2)').click();
// * Test the connection and verify that we are successful
cy.contains('button', 'Test Connection').click();