import { FeatureFlag } from '../../../src/featureFlags' import { getTestSelector } from '../../utils' describe('Swap settings', () => { it('Opens and closes the settings menu', () => { cy.visit('/swap', { featureFlags: [FeatureFlag.uniswapXEnabled], ethereum: 'hardhat' }) cy.contains('Settings').should('not.exist') cy.get(getTestSelector('open-settings-dialog-button')).click() cy.contains('Max slippage').should('exist') cy.contains('Transaction deadline').should('exist') cy.contains('UniswapX').should('exist') cy.contains('Local routing').should('exist') cy.get(getTestSelector('open-settings-dialog-button')).click() cy.contains('Settings').should('not.exist') }) })