Ghost/ghost/core/test/utils
Chris Raible 7a800ec06e
Fixed flaky test: posts API export can export with order (#16605)
closes Tryghost/Team#2975

- The test was failing because the order of the posts was not guaranteed
- The posts receive a published_at timestamp = new Date() when they are
created, unless a published_at date is passed in
- ~1/3 times the tests would run, the ordering would change and this
test would fail
- This commit fixes the test by passing in a published_at date to ensure
the order is always the same
2023-04-10 18:40:03 -07:00
..
agents Sped up comments and feedback tests by reusing Ghost app instance 2022-11-18 14:58:35 +01:00
fixtures Fixed flaky test: posts API export can export with order (#16605) 2023-04-10 18:40:03 -07:00
mocks Fixed Playwright tests for new email flow 2023-01-20 19:00:13 +01:00
admin-utils.js 🐛 Fixed missing published Admin assets when running in development 2022-08-04 10:55:35 +02:00
api.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
assertions.js Removed custom assertions 2023-03-10 14:29:55 +01:00
configUtils.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
db-utils.js Fixed warning about aborted connection in tests 2022-08-31 12:15:30 +01:00
e2e-framework-mock-manager.js Bumped email-mock-receiver 2023-04-06 22:13:17 +02:00
e2e-framework.js Added email snapshot tests to newsletter suites 2023-04-07 14:34:57 +02:00
e2e-utils.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
fixture-utils.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
index.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
overrides.js Added awaiting jobs and events by default to all tests (#16505) 2023-04-06 09:05:16 +02:00
redirects.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
stripe-mocker.js Added awaiting jobs and events by default to all tests (#16505) 2023-04-06 09:05:16 +02:00
url-service-utils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
urlUtils.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00