Skip to content

Commit

Permalink
updaet to failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tiyiprh committed Aug 21, 2024
1 parent 6240774 commit 50c3293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/awx/infrastructure/instances/instances.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cyLabel(['upstream'], () => {
it('can add a new instance and navigate to the details page', () => {
const instanceHostname = 'E2EInstanceTestAddEdit' + randomString(5);
// Navigate to the create instance page
cy.getByDataCy('add-instance').click();
cy.getByDataCy('create-instance').click();
cy.getByDataCy('page-title').should('contain', 'Create instance');
// Create a new instance
cy.getByDataCy('hostname').type(instanceHostname);
Expand Down Expand Up @@ -340,9 +340,9 @@ cyLabel(['upstream'], () => {
cy.url().then((currentUrl) => {
expect(currentUrl.includes('peers')).to.be.true;
});
cy.getByDataCy('associate-peer').click();
cy.getByDataCy('associate-peers').click();
cy.get('[data-ouia-component-type="PF5/ModalContent"]').within(() => {
cy.get('header').contains('Select Peer Addresses');
cy.get('header').contains('Select peer addresses');
cy.get('button').contains('Associate peers').should('have.attr', 'aria-disabled', 'true');
cy.filterTableBySingleText(instanceToAssociate.hostname, true);
cy.intercept('GET', awxAPI`/instances/${instanceToAssociate.id.toString()}/`).as(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function PeerInstanceModal(props: PeerInstanceModalProps) {

return (
<MultiSelectDialog
title={t('Select Peer Addresses')}
title={t('Select peer addresses')}
onSelect={onPeer}
toolbarFilters={toolbarFilters}
tableColumns={tableColumns}
Expand Down

0 comments on commit 50c3293

Please sign in to comment.