MM-57354: Fix elastic search e2e tests (#27670)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fb790a860b
Коммит
d71e5e4f4e
@@ -87,15 +87,14 @@ module.exports = {
|
||||
// # Enable elastic search via the API
|
||||
cy.apiUpdateConfig({
|
||||
ElasticsearchSettings: {
|
||||
EnableAutocomplete: true,
|
||||
EnableIndexing: true,
|
||||
EnableSearching: true,
|
||||
Sniff: false,
|
||||
},
|
||||
});
|
||||
|
||||
// # 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();
|
||||
|
||||
@@ -22,15 +22,17 @@ describe('Elasticsearch system console', () => {
|
||||
// # Enable Elasticsearch
|
||||
cy.apiUpdateConfig({
|
||||
ElasticsearchSettings: {
|
||||
EnableAutocomplete: true,
|
||||
EnableIndexing: true,
|
||||
EnableSearching: true,
|
||||
Sniff: false,
|
||||
},
|
||||
});
|
||||
|
||||
// # Visit the Elasticsearch settings page
|
||||
cy.visit('/admin_console/environment/elasticsearch');
|
||||
cy.get('[data-testid="enableIndexing"] > .col-sm-8 > :nth-child(2)').click();
|
||||
|
||||
// # Enable Auto complete
|
||||
cy.get('#enableAutocompletetrue').check().should('be.checked');
|
||||
|
||||
// * Verify that we can connect to Elasticsearch
|
||||
cy.get('#testConfig').find('button').click();
|
||||
@@ -72,6 +74,7 @@ describe('Elasticsearch system console', () => {
|
||||
errorMsg: 'Reindex did not succeed in time',
|
||||
});
|
||||
|
||||
cy.get('[data-testid="jobTable"]').scrollIntoView();
|
||||
cy.get('@firstRow').
|
||||
find('.status-icon-success').
|
||||
should('be.visible').
|
||||
|
||||
Ссылка в новой задаче
Block a user