From 5fae4ebf849b06f235809e0aae47f75ee73de1ee Mon Sep 17 00:00:00 2001 From: Sag Date: Wed, 29 Jan 2025 19:11:39 +0700 Subject: [PATCH] Updated file e2e test --- ghost/core/test/e2e-api/admin/files.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/core/test/e2e-api/admin/files.test.js b/ghost/core/test/e2e-api/admin/files.test.js index 300e0294a9c..a5f0f11c57e 100644 --- a/ghost/core/test/e2e-api/admin/files.test.js +++ b/ghost/core/test/e2e-api/admin/files.test.js @@ -29,7 +29,7 @@ describe('Files API', function () { .attach('file', path.join(__dirname, '/../../utils/fixtures/images/loadingcat_square.gif')) .expect(201); - res.body.files[0].url.should.match(new RegExp(`${config.get('url')}/content/files/\\d+/\\d+/loadingcat_square.gif`)); + res.body.files[0].url.should.match(new RegExp(`${config.get('url')}/content/files/\\d+/\\d+/loadingcat_square-\\w{16}\\.gif`)); res.body.files[0].ref.should.equal('934203942'); files.push(res.body.files[0].url.replace(config.get('url'), ''));