Fixed offer tests

no refs

- adds new product fixtures
- allows loading of products data for offers page
This commit is contained in:
Rishabh 2021-10-11 13:52:42 +05:30
parent 0459a1ca23
commit b55ff582b8
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
/* eslint-disable camelcase */
export default [
{
id: 1,
name: 'Test Product',
slug: 'test-product',
monthly_price: {
interval: 'month',
nickname: 'Monthly',
currency: 'usd',
amount: 500
},
yearly_price: {
interval: 'year',
nickname: 'Yearly',
currency: 'usd',
amount: 5000
},
created_at: '2015-11-13T16:01:29.131Z',
created_by: 1,
updated_at: '2015-11-13T16:01:29.131Z',
updated_by: 1
}
];

View File

@ -35,6 +35,7 @@ describe('Acceptance: Offers', function () {
describe('as owner', function () {
beforeEach(async function () {
this.server.loadFixtures('products');
enableLabsFlag(this.server, 'offers');
let role = this.server.create('role', {name: 'Owner'});