Commit a286e5b1 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

test: disable fiat announcement on cypress tests (#5751)

* test: disable fiat announcement on cypress tests

* Revert "test: skip tests due to fiat on-ramp change (#5742)"

This reverts commit 283479f7.

* dismissed
parent 62361647
......@@ -22,7 +22,7 @@ describe('Testing nfts', () => {
cy.get(getTestSelector('nft-collection-filter-buy-now')).should('exist')
})
xit('should be able to open bag and open sweep', () => {
it('should be able to open bag and open sweep', () => {
cy.get(getTestSelector('nft-sweep-button')).first().click()
cy.get(getTestSelector('nft-empty-bag')).should('exist')
cy.get(getTestSelector('nft-sweep-slider')).should('exist')
......@@ -52,7 +52,7 @@ describe('Testing nfts', () => {
cy.get(getTestSelector('nft-bag')).should('exist')
})
xit('should go view my nfts', () => {
it('should go view my nfts', () => {
cy.get(getTestSelector('web3-status-connected')).click()
cy.get(getTestSelector('nft-view-self-nfts')).click()
cy.get(getTestSelector('nft-explore-nfts-button')).should('exist')
......
describe('Pool', () => {
beforeEach(() => cy.visit('/pool'))
xit('add liquidity links to /add/ETH', () => {
it('add liquidity links to /add/ETH', () => {
cy.get('#join-pool-button').click()
cy.url().should('contain', '/add/ETH')
})
......
......@@ -40,12 +40,12 @@ Cypress.Commands.overwrite(
onBeforeLoad(win) {
options?.onBeforeLoad?.(win)
win.localStorage.clear()
if (options?.noWallet !== true) {
win.localStorage.setItem(
'redux_localstorage_simple_user',
`{"selectedWallet":"${options?.selectedWallet || 'INJECTED'}"}`
)
const userState = {
selectedWallet: options?.noWallet !== true ? options?.selectedWallet || 'INJECTED' : undefined,
fiatOnrampDismissed: true,
}
win.localStorage.setItem('redux_localstorage_simple_user', JSON.stringify(userState))
if (options?.featureFlags) {
const featureFlags = options.featureFlags.reduce(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment