2019-11-21 06:01:24 +03:00
|
|
|
const should = require('should');
|
|
|
|
const sinon = require('sinon');
|
|
|
|
const supertest = require('supertest');
|
2021-03-15 09:13:48 +03:00
|
|
|
const moment = require('moment');
|
2020-04-27 14:44:00 +03:00
|
|
|
const testUtils = require('../utils');
|
|
|
|
const configUtils = require('../utils/configUtils');
|
2021-06-30 16:56:57 +03:00
|
|
|
const settingsCache = require('../../core/shared/settings-cache');
|
2019-11-21 06:01:24 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
function assertContentIsPresent(res) {
|
|
|
|
res.text.should.containEql('<h2 id="markdown">markdown</h2>');
|
|
|
|
}
|
|
|
|
|
|
|
|
function assertContentIsAbsent(res) {
|
|
|
|
res.text.should.not.containEql('<h2 id="markdown">markdown</h2>');
|
|
|
|
}
|
|
|
|
|
2021-03-15 09:13:48 +03:00
|
|
|
describe('Front-end members behaviour', function () {
|
2019-11-21 06:01:24 +03:00
|
|
|
let request;
|
|
|
|
|
2021-05-10 21:32:11 +03:00
|
|
|
async function loginAsMember(email) {
|
|
|
|
// membersService needs to be required after Ghost start so that settings
|
|
|
|
// are pre-populated with defaults
|
|
|
|
const membersService = require('../../core/server/services/members');
|
|
|
|
|
|
|
|
const signinLink = await membersService.api.getMagicLink(email);
|
|
|
|
const signinURL = new URL(signinLink);
|
|
|
|
// request needs a relative path rather than full url with host
|
|
|
|
const signinPath = `${signinURL.pathname}${signinURL.search}`;
|
|
|
|
|
|
|
|
// perform a sign-in request to set members cookies on superagent
|
|
|
|
await request.get(signinPath)
|
|
|
|
.expect(302)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect((res) => {
|
2021-05-10 21:32:11 +03:00
|
|
|
const redirectUrl = new URL(res.headers.location, testUtils.API.getURL());
|
|
|
|
should.exist(redirectUrl.searchParams.get('success'));
|
|
|
|
redirectUrl.searchParams.get('success').should.eql('true');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-11-30 17:25:22 +03:00
|
|
|
before(async function () {
|
2021-01-28 21:07:45 +03:00
|
|
|
const originalSettingsCacheGetFn = settingsCache.get;
|
2019-11-21 06:01:24 +03:00
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
sinon.stub(settingsCache, 'get').callsFake(function (key, options) {
|
|
|
|
if (key === 'labs') {
|
|
|
|
return {members: true};
|
|
|
|
}
|
2019-11-21 06:01:24 +03:00
|
|
|
|
2021-03-18 19:13:10 +03:00
|
|
|
if (key === 'active_theme') {
|
2022-01-24 12:52:25 +03:00
|
|
|
return 'members-test-theme';
|
2021-03-18 19:13:10 +03:00
|
|
|
}
|
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
return originalSettingsCacheGetFn(key, options);
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|
2022-01-04 14:34:42 +03:00
|
|
|
await testUtils.startGhost();
|
2021-03-18 19:13:10 +03:00
|
|
|
await testUtils.initFixtures('members');
|
|
|
|
request = supertest.agent(configUtils.config.get('url'));
|
2021-01-28 21:07:45 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
after(function () {
|
|
|
|
sinon.restore();
|
|
|
|
});
|
2019-11-21 06:01:24 +03:00
|
|
|
|
2021-03-15 09:13:48 +03:00
|
|
|
describe('Member routes', function () {
|
2021-01-28 21:07:45 +03:00
|
|
|
it('should error serving webhook endpoint without any parameters', async function () {
|
|
|
|
await request.post('/members/webhooks/stripe')
|
|
|
|
.expect(400);
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|
|
|
|
|
2021-07-30 08:14:19 +03:00
|
|
|
it('should return no content for invalid token passed in session', async function () {
|
2021-01-28 21:07:45 +03:00
|
|
|
await request.get('/members/api/session')
|
2021-07-30 08:14:19 +03:00
|
|
|
.expect(204);
|
2021-01-28 21:07:45 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should return no content when removing member sessions', async function () {
|
|
|
|
await request.del('/members/api/session')
|
|
|
|
.expect(204);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should error for invalid member token on member data endpoint', async function () {
|
|
|
|
await request.get('/members/api/member')
|
2021-05-13 13:05:14 +03:00
|
|
|
.expect(204);
|
2021-01-28 21:07:45 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should serve member site endpoint', async function () {
|
|
|
|
await request.get('/members/api/site')
|
|
|
|
.expect(200);
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
it('should error for invalid data on member magic link endpoint', async function () {
|
|
|
|
await request.post('/members/api/send-magic-link')
|
|
|
|
.expect(400);
|
|
|
|
});
|
2019-11-21 06:01:24 +03:00
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
it('should error for invalid data on members create checkout session endpoint', async function () {
|
|
|
|
await request.post('/members/api/create-stripe-checkout-session')
|
|
|
|
.expect(400);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should error for invalid data on members create update session endpoint', async function () {
|
|
|
|
await request.post('/members/api/create-stripe-update-session')
|
|
|
|
.expect(400);
|
|
|
|
});
|
2019-11-21 06:01:24 +03:00
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
it('should error for invalid data on members subscription endpoint', async function () {
|
|
|
|
await request.put('/members/api/subscriptions/123')
|
|
|
|
.expect(400);
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
it('should serve theme 404 on members endpoint', async function () {
|
|
|
|
await request.get('/members/')
|
|
|
|
.expect(404)
|
|
|
|
.expect('Content-Type', 'text/html; charset=utf-8');
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|
|
|
|
|
2021-01-28 21:07:45 +03:00
|
|
|
it('should redirect invalid token on members endpoint', async function () {
|
|
|
|
await request.get('/members/?token=abc&action=signup')
|
|
|
|
.expect(302)
|
|
|
|
.expect('Location', '/?action=signup&success=false');
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
|
2021-03-18 19:13:10 +03:00
|
|
|
describe('Price data', function () {
|
|
|
|
it('Can be used as a number, and with the price helper', async function () {
|
|
|
|
// Check out test/utils/fixtures/themes/price-data-test-theme/index.hbs
|
|
|
|
// To see where this is coming from.
|
|
|
|
//
|
2021-05-27 08:19:35 +03:00
|
|
|
const legacyUse = /You can use the price data as a number and currency: £12/;
|
|
|
|
const withPriceHelper = /You can pass price data to the price helper: £12/;
|
2021-03-18 19:13:10 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
await request.get('/')
|
|
|
|
.expect((res) => {
|
|
|
|
should.exist(res.text.match(legacyUse));
|
|
|
|
should.exist(res.text.match(withPriceHelper));
|
|
|
|
});
|
2021-03-18 19:13:10 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2021-03-15 09:13:48 +03:00
|
|
|
describe('Content gating', function () {
|
|
|
|
let publicPost;
|
|
|
|
let membersPost;
|
|
|
|
let paidPost;
|
|
|
|
let membersPostWithPaywallCard;
|
2021-05-10 21:32:11 +03:00
|
|
|
let labelPost;
|
|
|
|
let productPost;
|
2021-03-15 09:13:48 +03:00
|
|
|
|
|
|
|
before(function () {
|
|
|
|
publicPost = testUtils.DataGenerator.forKnex.createPost({
|
|
|
|
slug: 'free-to-see',
|
|
|
|
visibility: 'public',
|
|
|
|
published_at: moment().add(15, 'seconds').toDate() // here to ensure sorting is not modified
|
|
|
|
});
|
|
|
|
|
|
|
|
membersPost = testUtils.DataGenerator.forKnex.createPost({
|
|
|
|
slug: 'thou-shalt-not-be-seen',
|
|
|
|
visibility: 'members',
|
|
|
|
published_at: moment().add(45, 'seconds').toDate() // here to ensure sorting is not modified
|
|
|
|
});
|
|
|
|
|
|
|
|
paidPost = testUtils.DataGenerator.forKnex.createPost({
|
|
|
|
slug: 'thou-shalt-be-paid-for',
|
|
|
|
visibility: 'paid',
|
|
|
|
published_at: moment().add(30, 'seconds').toDate() // here to ensure sorting is not modified
|
|
|
|
});
|
|
|
|
|
|
|
|
membersPostWithPaywallCard = testUtils.DataGenerator.forKnex.createPost({
|
|
|
|
slug: 'thou-shalt-have-a-taste',
|
|
|
|
visibility: 'members',
|
|
|
|
mobiledoc: '{"version":"0.3.1","markups":[],"atoms":[],"cards":[["paywall",{}]],"sections":[[1,"p",[[0,[],0,"Free content"]]],[10,0],[1,"p",[[0,[],0,"Members content"]]]]}',
|
|
|
|
html: '<p>Free content</p><!--members-only--><p>Members content</p>',
|
|
|
|
published_at: moment().add(5, 'seconds').toDate()
|
|
|
|
});
|
|
|
|
|
2021-05-10 21:32:11 +03:00
|
|
|
labelPost = testUtils.DataGenerator.forKnex.createPost({
|
|
|
|
slug: 'thou-must-be-labelled-vip',
|
|
|
|
visibility: 'label:vip',
|
|
|
|
published_at: moment().toDate()
|
|
|
|
});
|
|
|
|
|
|
|
|
productPost = testUtils.DataGenerator.forKnex.createPost({
|
|
|
|
slug: 'thou-must-have-default-product',
|
|
|
|
visibility: 'product:default-product',
|
|
|
|
published_at: moment().toDate()
|
|
|
|
});
|
|
|
|
|
2021-03-15 09:13:48 +03:00
|
|
|
return testUtils.fixtures.insertPosts([
|
|
|
|
publicPost,
|
|
|
|
membersPost,
|
|
|
|
paidPost,
|
2021-05-10 21:32:11 +03:00
|
|
|
membersPostWithPaywallCard,
|
|
|
|
labelPost,
|
|
|
|
productPost
|
2021-03-15 09:13:48 +03:00
|
|
|
]);
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('as non-member', function () {
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read public post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/free-to-see/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read members post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-not-be-seen/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
2021-05-10 21:32:11 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read paid post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-be-paid-for/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read label-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-be-labelled-vip/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read product-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-have-default-product/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
describe('as free member', function () {
|
|
|
|
before(async function () {
|
|
|
|
await loginAsMember('member1@test.com');
|
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read public post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/free-to-see/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read members post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-not-be-seen/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read paid post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-be-paid-for/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
2021-05-10 21:32:11 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read label-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-be-labelled-vip/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read product-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-have-default-product/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('as free member with vip label', function () {
|
|
|
|
before(async function () {
|
|
|
|
await loginAsMember('vip@test.com');
|
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read label-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-be-labelled-vip/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
describe('as paid member', function () {
|
|
|
|
before(async function () {
|
|
|
|
// membersService needs to be required after Ghost start so that settings
|
|
|
|
// are pre-populated with defaults
|
|
|
|
const membersService = require('../../core/server/services/members');
|
|
|
|
|
|
|
|
const signinLink = await membersService.api.getMagicLink('paid@test.com');
|
|
|
|
const signinURL = new URL(signinLink);
|
|
|
|
// request needs a relative path rather than full url with host
|
|
|
|
const signinPath = `${signinURL.pathname}${signinURL.search}`;
|
|
|
|
|
|
|
|
// perform a sign-in request to set members cookies on superagent
|
|
|
|
await request.get(signinPath)
|
|
|
|
.expect(302)
|
|
|
|
.then((res) => {
|
|
|
|
const redirectUrl = new URL(res.headers.location, testUtils.API.getURL());
|
|
|
|
should.exist(redirectUrl.searchParams.get('success'));
|
|
|
|
redirectUrl.searchParams.get('success').should.eql('true');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read public post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/free-to-see/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read members post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-not-be-seen/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read paid post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-be-paid-for/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
2021-05-10 21:32:11 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read label-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-be-labelled-vip/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read product-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-have-default-product/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-10 21:32:11 +03:00
|
|
|
describe('as paid member with vip label', function () {
|
2021-03-15 09:13:48 +03:00
|
|
|
before(async function () {
|
2021-05-10 21:32:11 +03:00
|
|
|
await loginAsMember('vip-paid@test.com');
|
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read label-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-be-labelled-vip/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
describe('as comped member', function () {
|
|
|
|
before(async function () {
|
|
|
|
await loginAsMember('comped@test.com');
|
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read public post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/free-to-see/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read members post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-not-be-seen/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read paid post content', async function () {
|
|
|
|
await request
|
2021-03-15 09:13:48 +03:00
|
|
|
.get('/thou-shalt-be-paid-for/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
2021-05-10 21:32:11 +03:00
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read label-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-be-labelled-vip/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('cannot read product-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-have-default-product/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsAbsent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('as member with product', function () {
|
|
|
|
before(async function () {
|
|
|
|
await loginAsMember('with-product@test.com');
|
|
|
|
});
|
|
|
|
|
2021-05-27 19:50:14 +03:00
|
|
|
it('can read product-only post content', async function () {
|
|
|
|
await request
|
2021-05-10 21:32:11 +03:00
|
|
|
.get('/thou-must-have-default-product/')
|
|
|
|
.expect(200)
|
2021-05-27 19:50:14 +03:00
|
|
|
.expect(assertContentIsPresent);
|
2021-05-10 21:32:11 +03:00
|
|
|
});
|
2021-03-15 09:13:48 +03:00
|
|
|
});
|
|
|
|
});
|
2019-11-21 06:01:24 +03:00
|
|
|
});
|