garris / garris/BackstopJS

storybook with backstopJs Docker and build pipeline

Open
#1,366 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hello, I did the configuration of the backstop with the storybook. I have very basic integration as of now. and I am new to docker and Azure build a pipeline.

I am looking for a guide to work my local setting with Docker and Azure build a pipeline.
Following are the steps and issues I faced.
1. I have set up docker at the local machine and running command "backstop test --docker" with scenarios URL is "https://host.docker.internal:6006/iframe.html?id=components-button--primary&viewMode=story","
2. It is working if the storybook is running, but will give an error if it is not running "Error: net::ERR_CONNECTION_REFUSED at https://host.docker.internal:6006/iframe.html?id=components-button--primary&viewMode=story"

Question:
1. How to run the test without running the storybook, in other words how to run it on the Azure build pipeline?
2. I want URL base_path should generate dynamically like for docker- "https://host.docker.internal:6006, localhost, QA and dev environment is xyz. our QA and dev environment URL is frequently changing so I want to take the recent URL do not want to hard code it on the config file. it should be taken from the current running environment(something like windows. location).
2. What exactly should I write in my docker file and build pipeline for backstopjs test perform in azure.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.