Skip to content

Commit

Permalink
Fix malware analyses nav after datatables rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
aHenryJard committed Sep 11, 2024
1 parent cfa08a8 commit 6382cc0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-front/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'on-first-retry',
video: 'retain-on-failure',
ignoreHTTPSErrors: true,
},
expect: { timeout: 60000 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ const MalwareAnalyses: FunctionComponent = () => {
<ExportContextProvider>
<Breadcrumbs variant="list" elements={[{ label: t_i18n('Analyses') }, { label: t_i18n('Malware analyses'), current: true }]} />
{queryRef && (
<div data-testid='malware-analyses-page'>
<DataTable
data-testid='malware-analyses-page'
dataColumns={dataColumns}
resolvePath={(data: MalwareAnalysesLines_data$data) => data.malwareAnalyses?.edges?.map((n) => n?.node)}
storageKey={LOCAL_STORAGE_KEY}
Expand All @@ -178,11 +178,12 @@ const MalwareAnalyses: FunctionComponent = () => {
lineFragment={malwareAnalysisFragment}
exportContext={{ entity_type: 'Malware-Analysis' }}
createButton={isFABReplaced && (
<Security needs={[KNOWLEDGE_KNUPDATE]}>
<MalwareAnalysisCreation paginationOptions={queryPaginationOptions} />
</Security>
<Security needs={[KNOWLEDGE_KNUPDATE]}>
<MalwareAnalysisCreation paginationOptions={queryPaginationOptions} />
</Security>
)}
/>
</div>
)}
{!isFABReplaced && (
<Security needs={[KNOWLEDGE_KNUPDATE]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export default class MalwareAnalysesPage {
}

getItemFromList(name: string) {
return this.page.getByRole('link', { name }).first();
return this.page.getByLabel(name);
}
}

0 comments on commit 6382cc0

Please sign in to comment.