Skip to content

Commit

Permalink
function updates
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 committed Nov 5, 2024
1 parent 80e3dd1 commit 574336a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1843,4 +1843,4 @@
"zod-to-json-schema": "^3.23.0"
},
"packageManager": "[email protected]"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ describe('Service inventory', () => {
it('with the correct environment when changing the environment', () => {
cy.wait(mainAliasNames);

cy.getByTestSubj('environmentFilter').type('{selectall}production');
cy.getByTestSubj('environmentFilter').find('input').focus();

cy.contains('button', 'production').click();
cy.contains('button', 'production').should('be.visible').click();

cy.expectAPIsToHaveBeenCalledWith({
apisIntercepted: mainAliasNames,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ describe('Service Overview', () => {

cy.intercept('GET', 'internal/apm/suggestions?*').as('suggestionsRequest');

cy.getByTestSubj('environmentFilter')
.find('input')
.type('{selectall}production', { force: true });
cy.getByTestSubj('environmentFilter').find('input').clear();
cy.getByTestSubj('environmentFilter').find('input').type('production');

cy.expectAPIsToHaveBeenCalledWith({
apisIntercepted: ['@suggestionsRequest'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,12 @@ describe('Agent configuration', () => {
'serviceEnvironmentApi'
);
cy.contains('Create configuration').click();
cy.getByTestSubj('serviceNameComboBox').click().type('opbeans-node').type('{enter}');
cy.getByTestSubj('serviceNameComboBox').find('input').focus().type('opbeans-node{enter}');

cy.contains('opbeans-node').realClick();
cy.wait('@serviceEnvironmentApi');

cy.getByTestSubj('serviceEnviromentComboBox')
.click({ force: true })
.type('prod')
.type('{enter}');
cy.getByTestSubj('serviceEnviromentComboBox').click({ force: true }).type('prod{enter}');
cy.contains('production').realClick();
cy.contains('Next step').click();
cy.contains('Create configuration');
Expand All @@ -152,13 +149,10 @@ describe('Agent configuration', () => {
'serviceEnvironmentApi'
);
cy.contains('Create configuration').click();
cy.getByTestSubj('serviceNameComboBox').click().type('All').type('{enter}');
cy.contains('All').realClick();
cy.getByTestSubj('serviceNameComboBox').find('input').focus().type('All{enter}');
cy.wait('@serviceEnvironmentApi');

cy.getByTestSubj('serviceEnviromentComboBox').click({ force: true }).type('All');

cy.get('mark').contains('All').click({ force: true });
cy.getByTestSubj('serviceEnviromentComboBox').click().type('All');
cy.get('button').contains('All').click();
cy.contains('Next step').click();
cy.get('[data-test-subj="settingsPage_serviceName"]').contains('All');
cy.get('[data-test-subj="settingsPage_environmentName"]').contains('All');
Expand Down

0 comments on commit 574336a

Please sign in to comment.