-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from bcgov/ofmcc-728-vitest-any-qa-bugs
OFMCC-728 QA fixes: filter out facilities with no portal access. Colu…
- Loading branch information
Showing
3 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import * as components from 'vuetify/components' | ||
import * as directives from 'vuetify/directives' | ||
|
||
import { describe, test } from 'vitest' | ||
|
||
import SettingsView from '@/views/SettingsView.vue' | ||
import { createTestingPinia } from '@pinia/testing' | ||
import { createVuetify } from 'vuetify' | ||
import { mount } from '@vue/test-utils' | ||
import { useAuthStore } from '@/stores/auth.js' | ||
|
||
const vuetify = createVuetify({ components, directives }) | ||
|
||
describe('SettingsVuew', () => { | ||
const global = { global: { plugins: [createTestingPinia(), vuetify] } } | ||
const authStore = useAuthStore() | ||
|
||
test('BceID User', async () => { | ||
authStore.userInfo = { organziationId: '6fbddbd7-5f8e-ee11-8179-000d3a09d699' } | ||
const wrapper = mount(SettingsView, global) | ||
console.log(wrapper.html()) | ||
}) | ||
|
||
/* it('shows "Account Management" in the first row of the Role column', async () => { | ||
await flushPromises() // Ensure all rendering is completed | ||
const firstRow = wrapper.find('table tbody tr:first-child') | ||
const roleCell = firstRow.find('td:nth-child(5)') | ||
expect(roleCell.text()).toContain('Account Management') | ||
}) */ | ||
}) |