Skip to content

Commit e7ee2d0

Browse files
committed
fix: fix tests
1 parent ec7c67d commit e7ee2d0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

cypress/e2e/navigation.cy.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Main Navigation and User Scenarios', () => {
66

77
it('displays the hero section correctly', () => {
88
cy.get('h1').should('contain', 'Будущее Атмосферы уже здесь')
9-
cy.get('a[href="/products"]').should('exist')
9+
cy.get('a[href$="/products"]').should('exist')
1010
})
1111

1212
it('can navigate to the catalog', () => {
@@ -23,9 +23,8 @@ describe('Main Navigation and User Scenarios', () => {
2323

2424
it('can open a product detail page', () => {
2525
cy.visit('/products')
26-
// cy.get('.grid').first().find('a').click()
2726
cy.get('.grid').find('a').first().click()
2827
cy.url().should('match', /\/products\/\d+/)
2928
cy.get('h1').should('be.visible')
3029
})
31-
})
30+
})

nuxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3+
app: {
4+
baseURL: '/doc/',
5+
},
36
nitro: {
47
preset: 'github-pages',
58
},

0 commit comments

Comments
 (0)