Skip to content

Commit

Permalink
test(cypress): add try again modal test (#3463)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavares843 authored Jun 3, 2022
1 parent e513874 commit 178d5ff
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions cypress/integration/create-account-negative-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})

0 comments on commit 178d5ff

Please sign in to comment.