Skip to content

Commit 7d7c6d4

Browse files
committed
removed mobile page from tests
1 parent 4552f58 commit 7d7c6d4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/smoke.spec.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import Home from '../src/views/Home.vue'
55
import Features from '../src/views/Features.vue'
66
import About from '../src/views/About.vue'
77
import FAQ from '../src/views/FAQ.vue'
8-
import MobileApp from '../src/views/MobileApp.vue'
98
import NotFound from '../src/views/NotFound.vue'
109

1110
const router = createRouter({
@@ -15,7 +14,6 @@ const router = createRouter({
1514
{ path: '/features', component: Features, name: 'Features' },
1615
{ path: '/about', component: About, name: 'About' },
1716
{ path: '/faq', component: FAQ, name: 'FAQ' },
18-
{ path: '/mobile', component: MobileApp, name: 'Mobile App' },
1917
{ path: '/:pathMatch(.*)*', component: NotFound, name: 'NotFound' }
2018
]
2119
})
@@ -74,17 +72,6 @@ describe('Smoke Tests', () => {
7472
expect(wrapper.vm).toBeTruthy()
7573
})
7674

77-
test('Mobile App page renders without crashing', async () => {
78-
router.push('/mobile')
79-
await router.isReady()
80-
const wrapper = mount(MobileApp, {
81-
global: {
82-
plugins: [router]
83-
}
84-
})
85-
expect(wrapper.vm).toBeTruthy()
86-
})
87-
8875
test('NotFound page renders without crashing', async () => {
8976
router.push('/non-existent-page')
9077
await router.isReady()
@@ -123,11 +110,6 @@ describe('Smoke Tests', () => {
123110
await wrapper.vm.$nextTick()
124111
expect(wrapper.findComponent(FAQ).exists()).toBe(true)
125112

126-
// Navigate to Mobile App
127-
await router.push('/mobile')
128-
await wrapper.vm.$nextTick()
129-
expect(wrapper.findComponent(MobileApp).exists()).toBe(true)
130-
131113
// Navigate to non-existent page
132114
await router.push('/non-existent-page')
133115
await wrapper.vm.$nextTick()

0 commit comments

Comments
 (0)