Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

Guide Screenshots

A repository for generating screenshots for the DSW User Guide.

Usage

Install Requirements

Use Node.js 24 LTS and install all dependencies:

$ make install

Setup Environment

Create a new file cypress.env.js in the project root and fill in the URLs and user accounts of the instance used for taking screenshots, as well as some instance details to be filled.

module.exports = {
    url: "...",
    apiUrl: "...",
    adminUsername: "...",
    adminPassword: "...",
    dataStewardUsername: "...",
    dataStewardPassword: "...",
    researcherUsername: "...",
    researcherPassword: "...",

    appTitle: 'DS Wizard',
    appTitleShort: 'DS Wizard',
    primaryColor: '#E95420',
    illustrationsColor: '#E95420',
    logoFixture: 'logo.svg',
}

Logo should be placed in cypress/fixtures/logo folder. If the logoFixture property is not set, the default logo will be used.

Create .env in the project root and fill in path to DSW User Guide locally:

GUIDE_PATH=/path/to/ds-wizard/guide

Create Scenarios for Screenshots

Use Cypress to create scenarios for taking screenshots. When taking a screenshot, use the file name that corresponds to the path where the screenshot should be in the docs.

For example, this one:

cy.screenshot('projects/detail/index/questionnaire')

Will eventually end up in /path/to/ds-wizard/guide/docs/projects/detail/index/questionnaire.png.

Run Cypress to Generate the Screenshots

$ make screenshots

Run Cypress to Generate the Screenshots of a Specific Part

For example knowledge-model-editors.cy.js

$ make screenshots.spec test=knowledge-model-editors

Copy the Screenshots into the Guide

$ make copy

License

This project is licensed under the Apache License v2.0 - see the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages