commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/tests/src/Nightwatch/Tests/cacheInvalidationDecoupledProductPageCacheTest.js
modules/commercetools_decoupled/tests/src/Nightwatch/Tests/cacheInvalidationDecoupledProductPageCacheTest.js
const getBeforeAfterFunctions = require('../../../../../../tests/src/Nightwatch/Lib/getBeforeAfterFunctions');
const checkProductPageCaching = require('../../../../../../tests/src/Nightwatch/Lib/checkProductPageCaching');
module.exports = {
...getBeforeAfterFunctions(__filename, {
// Set a separate context because the test modifies the files with assets
// that can break parallel execution of the tests.
context: 'checkProductPageCaching',
}),
'Check decoupled product page cache tags invalidation': async (browser) => {
await checkProductPageCaching(browser, 'commercetools_decoupled');
},
};
