Skip to content

Commit

Permalink
Fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautBremand committed Dec 20, 2023
1 parent 4e1ecdd commit 37db0cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/extension/cypress/e2e/networks.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ describe('Switch networks', () => {
// Expect an error dialog when trying to delete the network we are currently connected to
cy.contains('button', 'OK', { timeout: 3000 }).should('be.visible').click();

// Connect back to the Custom network
cy.contains('button', XRPLNetwork.CUSTOM).click();
// Connect back to the Devnet network
cy.contains('button', XRPLNetwork.DEVNET).click();

// Make sure that the network is switched to Custom network
// Make sure that the network is switched to Devnet network
cy.get('div[data-testid="loading"]').should('be.visible');
cy.get('div[data-testid="network-indicator"]').should('have.text', XRPLNetwork.CUSTOM, {
cy.get('div[data-testid="network-indicator"]').should('have.text', XRPLNetwork.DEVNET, {
timeout: 1500
});

Expand All @@ -196,9 +196,9 @@ describe('Switch networks', () => {
});
});

it('Switch from Custom (localStorage) to Mainnet', () => {
it('Switch from Devnet (localStorage) to Mainnet', () => {
// Custom network should be the network from localStorage
cy.get('div[data-testid="network-indicator"]').should('have.text', XRPLNetwork.CUSTOM, {
cy.get('div[data-testid="network-indicator"]').should('have.text', XRPLNetwork.DEVNET, {
timeout: 1500
});

Expand Down

0 comments on commit 37db0cf

Please sign in to comment.