Skip to content

Commit

Permalink
Update tests to match error for external connection
Browse files Browse the repository at this point in the history
  • Loading branch information
theskinnyghost committed Oct 3, 2023
1 parent b2b997a commit b47900f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cypress/e2e/external-connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe( 'Admin can add a new external connection', () => {
.should( 'have.class', 'error' );
} );

it( 'Should display limited connection warning', () => {
it( 'Should display error when credentials are invalid', () => {
cy.visit( '/wp-admin/admin.php?page=distributor' );
cy.get( '.page-title-action' ).contains( 'Add New' ).click();

Expand All @@ -109,9 +109,9 @@ describe( 'Admin can add a new external connection', () => {
cy.get( '#dt_external_connection_url' ).type(
'http://localhost/second/wp-json'
);
cy.get( '.description.endpoint-result' ).should(
cy.get( '.endpoint-result' ).should(
'contain.text',
'Limited connection established.'
'No connection found'
);
} );
} );

0 comments on commit b47900f

Please sign in to comment.