From 178d5ffccde47a3289fb37f47daf2dd74aabf977 Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Fri, 3 Jun 2022 16:11:09 +0100 Subject: [PATCH] test(cypress): add try again modal test (#3463) --- .../create-account-negative-tests.js | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/cypress/integration/create-account-negative-tests.js b/cypress/integration/create-account-negative-tests.js index bff3e2ce64..307b4bf55b 100644 --- a/cypress/integration/create-account-negative-tests.js +++ b/cypress/integration/create-account-negative-tests.js @@ -50,4 +50,50 @@ describe('Create Account - Negative Tests', () => { 'Unable to upload file/s due to NSFW status', ) }) + + it.skip('Logout user on /unlock page', () => { + // skipped due to textile/solana issues + cy.visit('/') + cy.get('[data-cy=add-input]').type('22,A9ZJ[F\t5g', { log: false }) + cy.get('[data-cy=submit-input]').click() + cy.get('[data-cy=create-account-button]').click() + cy.contains('I Saved It').click() + cy.get('[data-cy=username-input]') + .should('be.visible') + .trigger('input') + .type(randomName) + cy.intercept( + { + method: 'POST', + url: 'faucet.satellite.one/*', + }, + (req) => { + req.destroy() + }, + ) + cy.get('[data-cy=sign-in-button]').click() + cy.intercept( + { + method: 'POST', + url: 'faucet.satellite.one/*', + }, + (req) => { + req.destroy() + }, + ) + cy.intercept( + { + method: 'POST', + url: 'https://solana--devnet.datahub.figment.io/*', + }, + (req) => { + req.destroy() + }, + ) + cy.contains('Oops! Please Stand By', { timeout: 90000 }).should( + 'be.visible', + ) + cy.contains('Try Again').click() + cy.validateChatPageIsLoaded() + }) })