Skip to content

Commit

Permalink
fix(NcAppNavigationItem): run cypress tests
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Nov 17, 2023
1 parent 880ed85 commit b3762d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default defineConfig({

excludeSpecPattern: [
'cypress/component/richtext.cy.ts',
'cypress/visual/**/*.{j,t}s',
'cypress/visual/NcAppSidebar/*.{j,t}s',
],


Expand Down
11 changes: 5 additions & 6 deletions cypress/visual/AppNavigationItem.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from 'cypress/vue2'
import Vue, { defineComponent } from 'vue'
import VueRouter from 'vue-router'
import { mount } from 'cypress/vue'
import { defineComponent } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'

import NcAppNavigationItem from '../../src/components/NcAppNavigationItem/NcAppNavigationItem.vue'

Expand All @@ -11,16 +11,15 @@ describe('NcAppNavigationItem', () => {
components: { NcAppNavigationItem },
})

const router = new VueRouter({
const router = createRouter({
history: createWebHashHistory(),
routes: [
{ path: '/' },
{ path: '/foo' },
],
})

beforeEach(() => {
Vue.use(VueRouter)

mount(RouterComponent as never, {
extensions: {
plugins: [router],
Expand Down

0 comments on commit b3762d4

Please sign in to comment.