chore: fixing tests for cloudbuild plugins

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-11-12 00:29:18 +01:00
parent b94af61a24
commit 2e3e2c2cbe
@@ -18,6 +18,7 @@ import { renderInTestApp } from '@backstage/test-utils';
import React from 'react';
import { WorkflowRunsTableView } from './WorkflowRunsTable';
import { WorkflowRun } from '../useWorkflowRuns';
import { rootRouteRef } from '../../routes';
describe('<WorkflowRunsTableView />', () => {
let runs: WorkflowRun[] = [];
@@ -56,6 +57,7 @@ describe('<WorkflowRunsTableView />', () => {
runs={runs}
total={runs.length}
/>,
{ mountedRoutes: { '/': rootRouteRef } },
);
expect(getByTestId('cell-source')).toHaveAttribute('href', '/run_id_1');
@@ -74,6 +76,7 @@ describe('<WorkflowRunsTableView />', () => {
runs={runs}
total={runs.length}
/>,
{ mountedRoutes: { '/': rootRouteRef } },
);
expect(getByTestId('cell-created')).toHaveTextContent(
@@ -94,6 +97,7 @@ describe('<WorkflowRunsTableView />', () => {
runs={runs}
total={runs.length}
/>,
{ mountedRoutes: { '/': rootRouteRef } },
);
const rerunActionElement = getByTestId('action-rerun');