Skip to content

Commit

Permalink
test(api-doc): update markdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriPro committed Sep 11, 2024
1 parent bc5fe0e commit eb4e920
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cypress/e2e/specs/api_documentation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { product, productVersion } from '../fixtures/consts'
import childrenApiDocumentationJSON from '../fixtures/dochub_mocks/childrenApiDocumentation.json'
import documentTreeJSON from '../fixtures/dochub_mocks/documentTree.json'
import { FeatureFlags } from '@/constants/feature-flags'

describe('Api Documentation Page', () => {
beforeEach(() => {
Expand All @@ -11,6 +12,12 @@ describe('Api Documentation Page', () => {
cy.mockGetProductDocuments(product.id)
cy.mockProductOperations()
cy.mockStylesheetFont()
cy.mockLaunchDarklyFlags(
[{
name: FeatureFlags.newMarkdownRender,
value: false
}])
})
})

const PARENT_DOCUMENT_URL = `/docs/${product.id}/${documentTreeJSON[0].slug}`
Expand Down
2 changes: 1 addition & 1 deletion src/views/ApiDocumentationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<MarkdownUi
v-else-if="markdown && newMarkdownRenderEnabled"
v-model="markdown"
class="documentation-display"
class="documentation-display portal-document-viewer"
theme="light"
/>
</template>
Expand Down

0 comments on commit eb4e920

Please sign in to comment.