Giter VIP home page Giter VIP logo

devtools-integration-tests's Issues

Test for `storefront create --demo`

Context

Command npx saleor storefront create --demo is an important starting point for people visiting the Saleor website.

This command must work no matter what, so it's a good candidate for the first "serious" integration test.

Initial test

GIVEN:
Saleor CLI is installed (I can set Saleor CLI version in CICD input ๐Ÿ’ฏ )

WHEN:
npx saleor storefront create --demo is executed (with other flags non-interactive way)

THEN:
Repository should be created locally
AND
Project should run locally
AND
Any product can be added to basket
AND
Can proceed to checkout

Evaluate different stack - Node + Zx + Puppeteer/Playwright

Testing devtools integrations is mainly related to bash scripts or node operations. Cypress seems to mismatch with this, making it harder.

Consider different stack - raw Node scripts that runs all bash commands (zx for help) and run programmatically playwright/puppeteer only if browser is needed

Test if `saleor app create` creates app locally

Scenario 1 - creation

GIVEN
saleor CLI is installed

WHEN
saleor app create is triggered

THEN
app folder is created and files are there

Scenario 2 - dev sever

GIVEN
Scenario 1 is performed
AND
Context is inside app folder

WHEN
pnpm run dev is execured

THEN
App should be running on port :3000

Setup E2E tests CI/CD

This repository should have CICD with Github actions running with manual trigger (at the moment).

Via REST API this workflow can be triggered and connected to other repos - like open PR (in Storefront, CLI, Platform, etc), night tests (cron) or before a release.

Failing test should notify on email, slack, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.