From 37db0cf7b9ce5cf500648d052f5e30e4e2f6b098 Mon Sep 17 00:00:00 2001 From: thibautbremand Date: Wed, 20 Dec 2023 13:31:24 +0100 Subject: [PATCH] Fix cypress tests --- packages/extension/cypress/e2e/networks.cy.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/extension/cypress/e2e/networks.cy.ts b/packages/extension/cypress/e2e/networks.cy.ts index 2da2e621e..576eb3500 100644 --- a/packages/extension/cypress/e2e/networks.cy.ts +++ b/packages/extension/cypress/e2e/networks.cy.ts @@ -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 }); @@ -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 });