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:
Paul Tavares 2021-10-29 14:40:35 -04:00 committed by GitHub
parent 26ca3ffe05
commit ea1c3f2a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)/)
);
});