/* eslint-disable jest/expect-expect */ import { h, Fragment } from 'preact'; import { axe } from 'jest-axe'; import { render, getNodeText, waitFor } from '@testing-library/preact'; import { SingleArticle } from '../index'; const getTestArticle = () => ({ id: 1, title: 'An article title', path: 'an-article-title-di3', publishedAt: '2019-06-22T16:11:10.590Z', cachedTagList: 'discuss, javascript, beginners', user: { articles_count: 1, name: 'hello', }, }); describe('', () => { it('should have no a11y violations', async () => { // TODO: The axe custom rules here should be removed when the below issue is fixed // https://github.com/forem/forem/issues/14100 const customAxeRules = { 'nested-interactive': { enabled: false }, }; const { container } = render( {/* Div below needed for this test to pass while preserve FlagUserModal functionality */}