<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chantal Steur on Medium]]></title>
        <description><![CDATA[Stories by Chantal Steur on Medium]]></description>
        <link>https://medium.com/@chantalsteur?source=rss-488c2bb4c7be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*C-MnX-OBkcggL3In.</url>
            <title>Stories by Chantal Steur on Medium</title>
            <link>https://medium.com/@chantalsteur?source=rss-488c2bb4c7be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:24:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chantalsteur/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[End to end testing an e-commerce platform with Nightwatch.js and Browserstack]]></title>
            <link>https://medium.com/de-bijenkorf-techblog/end-to-end-testing-an-e-commerce-platform-with-nightwatch-js-and-browserstack-8eb69fbd75c6?source=rss-488c2bb4c7be------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eb69fbd75c6</guid>
            <category><![CDATA[end-to-end-testing]]></category>
            <category><![CDATA[e-commerce-software]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[browserstack]]></category>
            <category><![CDATA[nightwatchjs]]></category>
            <dc:creator><![CDATA[Chantal Steur]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 09:37:50 GMT</pubDate>
            <atom:updated>2020-02-18T09:37:50.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u4_tSZBtqfpB29Ua" /><figcaption>Photo by <a href="https://unsplash.com/@vaclavpluhar?utm_source=medium&amp;utm_medium=referral">Václav Pluhař</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Working with multiple teams on different parts of a website is a necessity when maintaining a large e-commerce platform, such as debijenkorf.nl. To make sure the different parts work together, it is extremely important to have well-tested code. End to end testing prevents a lot of trouble. It adds extra confidence that all code from different teams works as it should work when put together. This article introduces a global overview of the tools we use to end to end test and how we use them in our development process.</p><h4>Why we choose Nightwatch.js</h4><p>For debijenkorf.nl, we choose to use N<a href="https://nightwatchjs.org/">ightwatch.js</a> for running end to end tests. We first spend some time to see what is available on the market. We came down to the options Nightwatch.js and webdriverIO. There was some experience with WebDriverIO before, but the experience from that was that though it is flexible, it caters more towards customised and complex projects. The flexibility is actually what makes it more complex since it needs a good understanding of Selenium. Nightwatch.js APIs however handles this under the hood, which is great! We wrote a couple of tests in our project and liked how short and simple it was. It is human readable, it is concise, and so we went forward with Nightwatch.js as our end to end test framework.</p><h4>Nightwatch.js and Browserstack</h4><p>Nightwatch.js is a very easy to implement tool that can be used with any type of framework used to implement the frontend stack. In our case this includes React, but it could be anything. Nightwatch.js has clear documentation on their website and is pretty straightforward. Especially if you are already experienced with other testing tools like webdriverIO, Protractor or Cypress.</p><p>A great benefit is the easy implementation of the <a href="https://www.browserstack.com/">Browserstack</a> testing environment. Browserstack allows you to simulate a big variety of devices, operating systems and browsers. This is really powerful and helpful since we can write our tests once and run them on any device, OS, or browser we configure it to run on. For instance: a Chrome browser on a Windows desktop, or a Safari browser on an iPhone. All combinations are possible!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzX96JmJaq21wbuSdA7PkQ.png" /><figcaption>Browserstack offers every combination of device, os or browser to run your tests on</figcaption></figure><h4><strong>Writing a test</strong></h4><p>Writing a test starts with defining what scenario needs to be tested. End to end tests are supposed to simulate a real user scenario. For debijenkorf.nl this could be:</p><p><em>Log in to my account and check the status of my recent order</em></p><p>This is a useful scenario, since checking the status of an order is one of the main reasons for people to login to their account. It is therefore really helpful for us to have this covered with a test. It gives us the confidence that any new features we add are not breaking this important existing feature. The test we wrote for this scenario looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48d1f8ba57844ba538b2d3af97a61357/href">https://medium.com/media/48d1f8ba57844ba538b2d3af97a61357/href</a></iframe><p>It pretty much does exactly what a user would do. In the first block it visits our website, enters credentials and then it expects to be logged in. In the second block it interacts with the features and is able to see the order details.</p><h4><strong>End to end tests in CI/CD</strong></h4><p>To really get the most out of end to end tests it is important to run them each time before new changes go to production. If they pass, it is safe to proceed to production with the tested changes. To make sure the tests are always run, we added running end to end tests to our CI/CD pipeline. For us this pipeline looks like this:</p><figure><img alt="pipeline" src="https://cdn-images-1.medium.com/max/1024/1*d_so3G2iDLwoUhzhoKFPOg.png" /></figure><p>Having the tests as part of the CI/CD pipeline gives lots of confidence that nothing will break once new changes are pushed. If the tests don’t pass, Browserstack gives a good overview of which test failed and on which device, OS or browser this was.</p><p>In the example below one of the tests has failed. It shows clearly which test has fails. In the overview it will also show a link that will redirect to the overview of the failing test in Browserstack. In this overview it is possible to view a screen recording of the executed test. This is really helpful because it is easy to spot what caused the test to fail if you see the test visually running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*zyNzK_Z65I4i0coQ9yl0Tg.png" /><figcaption>Logs of a failing test</figcaption></figure><p>Hope this overview gives a bit of an idea how we do end to end testing at de Bijenkorf. For us this really provides a lot of extra assurance that we can push new code to production without having side effects. Hopefully this article inspires or helps others setting up their own end to end testing plan.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eb69fbd75c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/de-bijenkorf-techblog/end-to-end-testing-an-e-commerce-platform-with-nightwatch-js-and-browserstack-8eb69fbd75c6">End to end testing an e-commerce platform with Nightwatch.js and Browserstack</a> was originally published in <a href="https://medium.com/de-bijenkorf-techblog">De Bijenkorf — Design and Technology</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>