Fix skipped test to be more robust in matching relative dates (#116474)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
26ca3ffe05
commit
ea1c3f2a09
|
@ -65,12 +65,11 @@ describe.each([
|
|||
);
|
||||
});
|
||||
|
||||
// FLAKY https://github.com/elastic/kibana/issues/113892
|
||||
it.skip('should display dates in expected format', () => {
|
||||
it('should display dates in expected format', () => {
|
||||
render();
|
||||
|
||||
expect(renderResult.getByTestId('testCard-header-updated').textContent).toEqual(
|
||||
expect.stringMatching(/Last updated(\s seconds? ago|now)/)
|
||||
expect.stringMatching(/Last updated(?:(\s*\d+ seconds? ago)|now)/)
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue