diff --git a/plugins/scaffolder/src/components/ListTasksPage/columns/CreatedAtColumn.test.tsx b/plugins/scaffolder/src/components/ListTasksPage/columns/CreatedAtColumn.test.tsx
index 9cd1353ae1..92f1c4560c 100644
--- a/plugins/scaffolder/src/components/ListTasksPage/columns/CreatedAtColumn.test.tsx
+++ b/plugins/scaffolder/src/components/ListTasksPage/columns/CreatedAtColumn.test.tsx
@@ -23,12 +23,16 @@ import { DateTime } from 'luxon';
describe('', () => {
it('should render the column with the time', async () => {
const props = {
- createdAt: DateTime.now().toISO()!,
+ createdAt: DateTime.now().toISO(),
};
+ const formattedTime = DateTime.fromISO(props.createdAt).toLocaleString(
+ DateTime.DATETIME_SHORT_WITH_SECONDS,
+ );
+
const { getByText } = await renderInTestApp();
- const text = getByText('0 seconds ago');
+ const text = getByText(formattedTime);
expect(text).toBeDefined();
});
});