Ghost/test/e2e-api/admin/site.test.js
Hannah Wolfe b5ee17b25f
Moved site.test.js from regression to e2e-api
- We're in the process of rolling out a new e2e-framework, and getting rid of the regression tests
- We'll eventually merge all the tests together and into using the same framework
2022-02-11 16:24:00 +00:00

24 lines
631 B
JavaScript

const {agentProvider, matchers} = require('../../utils/e2e-framework');
const {anyString, stringMatching} = matchers;
describe('Site API', function () {
let agent;
before(async function () {
agent = await agentProvider.getAdminAPIAgent();
});
it('can retrieve config and all expected properties', async function () {
await agent
.get('site/')
.matchBodySnapshot({
site: {
version: stringMatching(/\d+\.\d+/)
}
})
.matchHeaderSnapshot({
etag: anyString
});
});
});