saleor / devtools-integration-tests Goto Github PK
View Code? Open in Web Editor NEWThis is a hub for integration and e2e tests for CLI
This is a hub for integration and e2e tests for CLI
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.
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
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
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
Introduce Cypress setup in this repository.
Cypress can use cy.exec
command, which will spawn CLI commands and read its output
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.