Skip to content

Commit

Permalink
Cypress test fix (#616)
Browse files Browse the repository at this point in the history
* Edit tests

* Edit test

* Update test
  • Loading branch information
jefflau authored Mar 10, 2020
1 parent 7f4f9ac commit 7bdb58b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cypress/integration/resolverMigration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ describe('Migrate resolver and records', () => {
it('can visit a name with an old resolver and migrate it', () => {
cy.visit(`${ROOT}/name/abittooawesome2.eth`)
cy.getByText('Migrate', { timeout: 5000 }).click({ force: true })
cy.queryByText('migrate', { timeout: 50 }).should('not.exist')
cy.queryByText('migrate', { timeout: 1000 }).should('not.exist')
})

it('can visit a name with an old content resolver and migrate it as swarm contenthash', () => {
cy.visit(`${ROOT}/name/oldresolver.eth`)
cy.getByText('Migrate', { timeout: 5000 }).click({ force: true })
cy.queryByText('migrate', { timeout: 50 }).should('not.exist')
cy.queryByText('bzz://', {
exact: false
}).should('exist')
cy.queryByText('migrate', { timeout: 1000 }).should('not.exist')
})

it('cannot migrate resolver if the parent domain is not migrateed', () => {
Expand Down

0 comments on commit 7bdb58b

Please sign in to comment.