Skip to content

Commit

Permalink
ensure options list visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelolo24 committed Nov 25, 2024
1 parent f9ab658 commit 16972f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ describe('Service inventory', () => {

cy.getByTestSubj('environmentFilter').find('input').click();
cy.getByTestSubj('comboBoxOptionsList environmentFilter-optionsList').should('be.visible');
cy.contains('button', 'production').click();
cy.getByTestSubj('comboBoxOptionsList environmentFilter-optionsList')
.contains('button', 'production')
.click();

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

cy.getByTestSubj('environmentFilter').find('input').click();
cy.getByTestSubj('comboBoxOptionsList environmentFilter-optionsList').should('be.visible');
cy.contains('button', 'production').click();
cy.getByTestSubj('comboBoxOptionsList environmentFilter-optionsList')
.contains('button', 'production')
.click();

cy.expectAPIsToHaveBeenCalledWith({
apisIntercepted: aliasNames,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ describe('Agent configuration', () => {
cy.getByTestSubj('comboBoxOptionsList serviceEnviromentComboBox-optionsList').should(
'be.visible'
);
cy.contains('button', 'production').click();
cy.getByTestSubj('comboBoxOptionsList serviceEnviromentComboBox-optionsList')
.contains('button', 'production')
.click();

cy.contains('Next step').click();
cy.contains('Create configuration');
Expand All @@ -156,14 +158,18 @@ describe('Agent configuration', () => {
cy.getByTestSubj('serviceNameComboBox').find('input').click();
cy.getByTestSubj('comboBoxOptionsList serviceNameComboBox-optionsList').should('be.visible');

cy.contains('button', 'All').click();
cy.getByTestSubj('comboBoxOptionsList serviceNameComboBox-optionsList')
.contains('button', 'All')
.click();
cy.wait('@serviceEnvironmentApi');

cy.getByTestSubj('serviceEnviromentComboBox').find('input').click();
cy.getByTestSubj('comboBoxOptionsList serviceEnviromentComboBox-optionsList').should(
'be.visible'
);
cy.contains('button', 'All').click();
cy.getByTestSubj('comboBoxOptionsList serviceEnviromentComboBox-optionsList')
.contains('button', 'All')
.click();

cy.contains('Next step').click();
cy.get('[data-test-subj="settingsPage_serviceName"]').contains('All');
Expand Down

0 comments on commit 16972f2

Please sign in to comment.