describe('Discussions page', async () => {
const wrapper = mount(Discussions)
test('comments component loads', () => {
const comments = wrapper.find('#comments')
expect(comments.exists()).toBe(true);
})
test('Login button is visible', () => {
const comments = wrapper.find('#comments')
expect(comments.html({raw: true}).includes('Failed to load comments...')).toBe(true)
})
})
describe('Discussions page', async () => {
const wrapper = mount(Discussions)
test('comments component loads', () => {
const comments = wrapper.find('#comments')
expect(comments.exists()).toBe(true);
})
test('Login button is visible', () => {
const comments = wrapper.find('#comments')
expect(comments.html({raw: true}).includes('Failed to load comments...')).toBe(true)
})
})