From e0775b7c213e68ed0eef9f007da1209f93a77757 Mon Sep 17 00:00:00 2001 From: Marta Motyczynska Date: Tue, 3 Sep 2024 10:42:45 +0200 Subject: [PATCH] Add global license key to manual and automated tests. --- .../lib/utils/automated-tests/getwebpackconfig.js | 2 ++ .../lib/utils/manual-tests/getwebpackconfig.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/ckeditor5-dev-tests/lib/utils/automated-tests/getwebpackconfig.js b/packages/ckeditor5-dev-tests/lib/utils/automated-tests/getwebpackconfig.js index a15cc5770..072943f3e 100644 --- a/packages/ckeditor5-dev-tests/lib/utils/automated-tests/getwebpackconfig.js +++ b/packages/ckeditor5-dev-tests/lib/utils/automated-tests/getwebpackconfig.js @@ -18,6 +18,8 @@ const TreatWarningsAsErrorsWebpackPlugin = require( './treatwarningsaserrorswebp module.exports = function getWebpackConfigForAutomatedTests( options ) { const definitions = Object.assign( {}, getDefinitionsFromFile( options.identityFile ) ); + definitions[ 'window.CKEDITOR_GLOBAL_LICENSE_KEY' ] = JSON.stringify( 'GPL' ); + const config = { mode: 'development', diff --git a/packages/ckeditor5-dev-tests/lib/utils/manual-tests/getwebpackconfig.js b/packages/ckeditor5-dev-tests/lib/utils/manual-tests/getwebpackconfig.js index 4dbab390b..28b6c0601 100644 --- a/packages/ckeditor5-dev-tests/lib/utils/manual-tests/getwebpackconfig.js +++ b/packages/ckeditor5-dev-tests/lib/utils/manual-tests/getwebpackconfig.js @@ -29,6 +29,8 @@ const getDefinitionsFromFile = require( '../getdefinitionsfromfile' ); module.exports = function getWebpackConfigForManualTests( options ) { const definitions = Object.assign( {}, getDefinitionsFromFile( options.identityFile ) ); + definitions[ 'window.CKEDITOR_GLOBAL_LICENSE_KEY' ] = JSON.stringify( 'GPL' ); + const webpackConfig = { mode: 'none',