Skip to content

Commit

Permalink
Merge pull request #5894 from kodadot/feat-hiding-stats
Browse files Browse the repository at this point in the history
#5889 hiding stats
  • Loading branch information
vikiival committed May 12, 2023
2 parents 5b28cb5 + c40454f commit 1d30368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
7 changes: 4 additions & 3 deletions components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@
data-cy="create"
:is-mobile="isMobile"
:chain="urlPrefix" />
<StatsDropdown

<!-- commenting as part of #5889-->
<!-- <StatsDropdown
class="navbar-stats custom-navbar-item"
data-cy="stats"
:is-mobile="isMobile"
:chain="urlPrefix" />
:chain="urlPrefix" /> -->

<ChainSelectDropdown
v-if="!isMobile"
Expand Down Expand Up @@ -151,7 +153,6 @@ import ColorModeButton from '~/components/common/ColorModeButton.vue'
import MobileLanguageOption from '~/components/navbar/MobileLanguageOption.vue'
import { createVisible } from '@/utils/config/permision.config'
import ChainSelectDropdown from '~/components/navbar/ChainSelectDropdown.vue'
import StatsDropdown from '~/components/navbar/StatsDropdown.vue'
import MobileNavbarProfile from '~/components/navbar/MobileNavbarProfile.vue'
import ConnectWalletButton from '~/components/shared/ConnectWalletButton.vue'
import NotificationBoxButton from '~/components/navbar/NotificationBoxButton.vue'
Expand Down
18 changes: 0 additions & 18 deletions tests/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,6 @@ Cypress.Commands.add('rmrkNavbar', () => {
.should('have.attr', 'href')
.and('include', '/rmrk/mint')
cy.get('[data-cy="explore"]').should('be.visible')
cy.get('[data-cy="stats"]').should('be.visible')
cy.get('[data-cy="spotlight"]')
.should('have.attr', 'href')
.and('include', '/spotlight')
cy.get('[data-cy="series-insight"]')
.should('have.attr', 'href')
.and('include', '/series-insight')
cy.get('[data-cy="sales"]')
.should('have.attr', 'href')
.and('include', '/sales')
cy.get('[data-cy="hot"]').should('have.attr', 'href').and('include', '/hot')
cy.get('[data-cy="profileDropdown"]').should('be.visible')
cy.get('[data-cy="profileDropdown"]').click()
cy.get('[data-cy="chain-select"]').should('be.visible')
Expand All @@ -53,13 +42,6 @@ Cypress.Commands.add('snekNavbar', () => {
.and('include', '/snek/create')
cy.get('[data-cy="explore"]').should('be.visible')
cy.get('[data-cy="chain"]').should('be.visible')
cy.get('[data-cy="stats"]').should('be.visible')
cy.get('[data-cy="global-offers"]')
.should('have.attr', 'href')
.and('include', '/snek/offers')
cy.get('[data-cy="offers-stats"]')
.should('have.attr', 'href')
.and('include', '/snek/stats')
cy.get('[data-cy="chain-select"]').should('be.visible')
cy.get('[data-cy="chain-select"]').click()
})
Expand Down

0 comments on commit 1d30368

Please sign in to comment.