Text preview tests fail when using production JS scripts