Skip to content

Commit

Permalink
Merge pull request #540 from hlxsites/feat-539-tests
Browse files Browse the repository at this point in the history
chore: make author tests independent from env
  • Loading branch information
mhaack authored Dec 5, 2023
2 parents b09c995 + d46d54d commit 60d920a
Showing 22 changed files with 61 additions and 49 deletions.
18 changes: 13 additions & 5 deletions styles/styles.css
Original file line number Diff line number Diff line change
@@ -296,18 +296,26 @@
text-decoration-line: underline;
text-decoration-color: #3bc7e5;
text-decoration-thickness: 3px;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
transition-duration: 700ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.application main .columns > div div > p:not(.button-container) a:hover {
--tw-bg-opacity: 1;
background-color: rgb(59 199 229 / var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
transition-duration: 150ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {

.application main .columns > div div > p:not(.button-container) a {
overflow-wrap: normal;
word-break: normal;
}
}

.testimonial>div {
4 changes: 4 additions & 0 deletions tools/actions/convert/test/converter.test.js
Original file line number Diff line number Diff line change
@@ -22,6 +22,10 @@ import createPipeline from '../src/utils.js';
describe('Converter', async () => {
// eslint-disable-next-line no-undef
const fixturesFolder = path.resolve(__testdir, 'fixtures');

// use dummy author host to make test independent
converterCfg.origin = 'https://author-dummy.adobeaemcloud.com';

const testRunner = createPipeline().wrap(toMocha, {
transform,
converterCfg,
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ <h1>Applications</h1>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
</div>
</div>
<div>
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ <h2>Need help with your ELISA application?</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
</div>
</div>
<div>
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ <h2>Need help with your Synthetic Biology application?</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
</div>
</div>
<div>
2 changes: 1 addition & 1 deletion tools/actions/convert/test/fixtures/blog-converted.html
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
<h1>The AI-powered pixel classifier</h1>
<p>Fast and reproducible microscopy-image segmentation results</p>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/internal-blog/csm-pixel-classifier-video-nspshot.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/internal-blog/csm-pixel-classifier-video-nspshot.jpg" alt="">
</p>
<div class="takeway">
<div>
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ <h1>Insights and inspiration from the industry’s leading experts</h1>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/system/danaher-image.jpg" alt="">
</div>
</div>
<div>
2 changes: 1 addition & 1 deletion tools/actions/convert/test/fixtures/blog2-converted.html
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ <h2>9. Skyland PIMS</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/nine-essential-products.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/nine-essential-products.jpg" alt="">
</div>
</div>
<div>
2 changes: 1 addition & 1 deletion tools/actions/convert/test/fixtures/blog3-converted.html
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ <h2>About the Author</h2>
<div>
<div>authorImage</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/enabling-science-at-scale/vanessa-almendro.jpeg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/enabling-science-at-scale/vanessa-almendro.jpeg" alt="">
</div>
</div>
<div>
4 changes: 2 additions & 2 deletions tools/actions/convert/test/fixtures/blog4-converted.html
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ <h2>Using automation to drive the future of organoids</h2>
<div class="testimonial">
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/system/quote.png" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/system/quote.png" alt="">
</div>
<div>Finally, implementing micro-manufacturing techniques such as 3D printing or laser cutting can help better control the shape and morphology of organoids.</div>
</div>
@@ -82,7 +82,7 @@ <h2>References</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/preclinical-organoids.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/preclinical-organoids.jpg" alt="">
</div>
</div>
<div>
6 changes: 3 additions & 3 deletions tools/actions/convert/test/fixtures/blog6-converted.html
Original file line number Diff line number Diff line change
@@ -18,15 +18,15 @@
<h1>The Transformative Power of Insights in Biopharma Development: Why a Digital Backbone Matters</h1>
<p>Discover how a digital backbone can help to realize the full potential of data and generate meaningful insights.</p>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/digital-backbone.jpg" alt="Digital Backbone">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/digital-backbone.jpg" alt="Digital Backbone">
</p>
<p>Digitalization underpins the biopharma industry’s endeavors to keep up with scientific and technological innovation and to ultimately get life-changing therapeutics into the hands of patients as quickly as possible. However, many have failed to leverage the capabilities of digital and analytics tools, setting them behind on their digital maturation journey and impacting the delivery of therapeutics to market. Biopharma executives are realizing that they now need to “adopt digital technologies faster to win in the market”.<a href="https://www2.deloitte.com/us/en/insights/industry/life-sciences/biopharma-digital-transformation.html">¹</a></p>
<p>The industry as a whole is on the digital transformation path, but individual organizations often implement fragmented software tools that mimic manual processes in a digital format rather than rethinking their objective in a digital paradigm. This results in disparate and disjointed digital systems, often requiring manual intervention to move data across them, nullifying the purpose of the implemented tool to support a digital transformation strategy.Globally adopted initiatives combining scientific potential with business needs are key to truly digitally transforming a business.</p>
<p>Fundamental to delivering a drug to market is the full story of how a drug was designed, developed, validated, tested, packaged and released. Digital tools can facilitate this, but can the associated data be reused, re-purposed and leveraged to drive innovation? While data still livein dead-end repositories, is the industry able to truly harness the power of the large volumes of data it creates?</p>
<h2>A myriad of experiments, instruments and reports</h2>
<p>The plethora of documentation (Figure 1) required at each stage of development is enormous,<a href="https://www.fda.gov/media/76444/download">²</a>and is also expected to be submitted in the eCTD format aligned to ICH Guidelines.<a href="https://www.ema.europa.eu/en/documents/scientific-guideline/ich-guideline-m4-r4-common-technical-document-ctd-registration-pharmaceuticals-human-use_en.pdf">³</a></p>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/key-development-stages.jpg" alt="Key Development Stages">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/key-development-stages.jpg" alt="Key Development Stages">
</p>
<div class="takeway">
<div>
@@ -162,7 +162,7 @@ <h2>References</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/digital-backbone.jpg" alt="">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/digital-backbone.jpg" alt="">
</div>
</div>
<div>
22 changes: 11 additions & 11 deletions tools/actions/convert/test/fixtures/en-converted.html
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ <h2>Together, we see a way</h2>
<div>
<h2>Trending Science</h2>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/tracking-vaccine-impurity.jpg" alt="Danaher Corporation">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/blogs/external-blogs/tracking-vaccine-impurity.jpg" alt="Danaher Corporation">
</p>
</div>
<div>
@@ -34,7 +34,7 @@ <h3>Tackling Vaccine (Im)purity</h3>
<div>
<h2>Engineering Biology</h2>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/homepage-rebrand/automation-card.jpg" alt="Danaher Corporation">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/homepage-rebrand/automation-card.jpg" alt="Danaher Corporation">
</p>
</div>
<div>
@@ -46,7 +46,7 @@ <h3>Automation</h3>
<div>
<h2>Danaher News</h2>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/news/digital-microscope-simplifies.jpg" alt="Danaher Corporation">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/news/digital-microscope-simplifies.jpg" alt="Danaher Corporation">
</p>
</div>
<div>
@@ -72,49 +72,49 @@ <h2>Innovatively integrated solutions from Danaher Life Sciences</h2>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/BECKMAN.svg" alt="Beckman">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/BECKMAN.svg" alt="Beckman">
</div>
<div><a href="https://www.beckman.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">Beckman</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/idbs-4c.svg" alt="idbs">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/idbs-4c.svg" alt="idbs">
</div>
<div><a href="https://www.idbs.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">idbs</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/LEICA.svg" alt="Leica Microsystems">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/LEICA.svg" alt="Leica Microsystems">
</div>
<div><a href="https://www.leica-microsystems.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">Leica Microsystems</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/MOLDEV.svg" alt="Molecular Devices">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/MOLDEV.svg" alt="Molecular Devices">
</div>
<div><a href="https://www.moleculardevices.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">Molecular Devices</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/PHENOMENEX.svg" alt="Phenomenex">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/PHENOMENEX.svg" alt="Phenomenex">
</div>
<div><a href="https://www.phenomenex.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">Phenomenex</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/SCIEX.svg" alt="Sciex">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/SCIEX.svg" alt="Sciex">
</div>
<div><a href="https://sciex.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">Sciex</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/aldevron-4c.svg" alt="Aldevron">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/aldevron-4c.svg" alt="Aldevron">
</div>
<div><a href="https://www.aldevron.com/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">Aldevron</a></div>
</div>
<div>
<div>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/IDT-integrated-dna-technologies-4c.svg" alt="IDT">
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/full-color/IDT-integrated-dna-technologies-4c.svg" alt="IDT">
</div>
<div><a href="https://www.idtdna.com/pages/?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=cloud">IDT</a></div>
</div>
18 changes: 9 additions & 9 deletions tools/actions/convert/test/fixtures/header-converted.html
Original file line number Diff line number Diff line change
@@ -5,33 +5,33 @@
<div>
<ul>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/BECKMAN.svg" alt="Beckman Coulter"><a href="https://www.beckman.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Beckman Coulter</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/BECKMAN.svg" alt="Beckman Coulter"><a href="https://www.beckman.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Beckman Coulter</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/IDBS.svg" alt="IDBS"><a href="https://www.idbs.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">IDBS</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/IDBS.svg" alt="IDBS"><a href="https://www.idbs.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">IDBS</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/LEICA.svg" alt="Leica"><a href="https://www.leica-microsystems.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Leica</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/LEICA.svg" alt="Leica"><a href="https://www.leica-microsystems.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Leica</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/MOLDEV.svg" alt="Molecular Devices"><a href="http://www.moleculardevices.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Molecular Devices</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/MOLDEV.svg" alt="Molecular Devices"><a href="http://www.moleculardevices.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Molecular Devices</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/PHENOMENEX.svg" alt="Phenomenex"><a href="http://www.phenomenex.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Phenomenex</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/PHENOMENEX.svg" alt="Phenomenex"><a href="http://www.phenomenex.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Phenomenex</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/SCIEX.svg" alt="Sciex"><a href="https://sciex.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Sciex</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/SCIEX.svg" alt="Sciex"><a href="https://sciex.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Sciex</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/aldevron-1c.svg" alt="Aldevron"><a href="https://www.aldevron.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Aldevron</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/aldevron-1c.svg" alt="Aldevron"><a href="https://www.aldevron.com?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">Aldevron</a>
</li>
<li>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/IDT-integrated-dna-technologies-1c.svg" alt="IDT"><a href="https://www.idtdna.com/pages?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">IDT</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/svg/1-color/IDT-integrated-dna-technologies-1c.svg" alt="IDT"><a href="https://www.idtdna.com/pages?utm_source=dhls_website&#x26;utm_medium=referral&#x26;utm_content=header">IDT</a>
</li>
</ul>
<hr>
<p>
<img src="https://author-p93411-e849602.adobeaemcloud.com/content/dam/danaher/brand-logos/danaher/Logo.svg" alt="Danaher"><a href="/">Danaher</a>
<img src="https://author-dummy.adobeaemcloud.com/content/dam/danaher/brand-logos/danaher/Logo.svg" alt="Danaher"><a href="/">Danaher</a>
</p>
<ul>
<li><a href="/us/en/signin.html">:user-icon: Login Register</a></li>
Loading

0 comments on commit 60d920a

Please sign in to comment.