mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 14:14:10 +00:00
chore: fix tests
This commit is contained in:
parent
81b62a508e
commit
59cb734ff4
1
.github/actions/run-e2e-tests/action.yml
vendored
1
.github/actions/run-e2e-tests/action.yml
vendored
@ -14,5 +14,4 @@ runs:
|
||||
env:
|
||||
RUN_EE: ${{ inputs.runEE }}
|
||||
JEST_OPTIONS: ${{ inputs.jestOptions }}
|
||||
STRAPI_FEATURES_FUTURE_RELEASES_SCHEDULING: ${{ inputs.enableFutureFeatures }}
|
||||
shell: bash
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import { createStrapiInstance } from 'api-tests/strapi';
|
||||
import { createAuthRequest } from 'api-tests/request';
|
||||
import { describeOnCondition } from 'api-tests/utils';
|
||||
import { createTestBuilder } from 'api-tests/builder';
|
||||
|
||||
const collectionTypeUid = 'api::product.product';
|
||||
@ -41,11 +40,7 @@ const singleTypeModel = {
|
||||
},
|
||||
};
|
||||
|
||||
const edition = process.env.STRAPI_DISABLE_EE === 'true' ? 'CE' : 'EE';
|
||||
|
||||
// TODO: Remove skip when future flag is removed
|
||||
// describeOnCondition(edition === 'EE')('Preview', () => {
|
||||
describeOnCondition(false)('Preview', () => {
|
||||
describe('Preview', () => {
|
||||
const builder = createTestBuilder();
|
||||
let strapi;
|
||||
let rq;
|
||||
|
||||
@ -1,6 +1,3 @@
|
||||
module.exports = ({ env }) => ({
|
||||
future: {
|
||||
contentReleasesScheduling: env.bool('STRAPI_FEATURES_FUTURE_RELEASES_SCHEDULING', false),
|
||||
preview: true,
|
||||
},
|
||||
future: {},
|
||||
});
|
||||
|
||||
@ -1,12 +1,10 @@
|
||||
import { test, expect, Page } from '@playwright/test';
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { login } from '../../utils/login';
|
||||
import { resetDatabaseAndImportDataFromPath } from '../../utils/dts-import';
|
||||
import { clickAndWait, describeOnCondition, findAndClose, skipCtbTour } from '../../utils/shared';
|
||||
import { clickAndWait, findAndClose, skipCtbTour } from '../../utils/shared';
|
||||
import { resetFiles } from '../../utils/file-reset';
|
||||
|
||||
const edition = process.env.STRAPI_DISABLE_EE === 'true' ? 'CE' : 'EE';
|
||||
|
||||
describeOnCondition(edition === 'EE')('Preview', () => {
|
||||
test.describe('Preview', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await resetDatabaseAndImportDataFromPath('with-admin.tar', (cts) => cts, { coreStore: false });
|
||||
await resetFiles();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user