Gaëtan Maisse
27fa6e1889
refactor(repro): make the generator responsible for mkdir the repro directory if needed
2021-05-10 22:49:15 +02:00
Michael Shilman
16d58fe836
Fix appName in both repro and e2e
2021-05-10 15:08:37 +08:00
Gaëtan Maisse
95c31b7379
e2e: reduce Cypress timeout to 4s
2021-05-09 20:43:22 +02:00
Gaëtan Maisse
426bbe55ab
e2e: use config from repro instead of duplicating them
2021-05-09 19:21:37 +02:00
Gaëtan Maisse
194a699104
feat(repro): add pnp
flag to use Yarn in Plug'n'Play mode
2021-05-09 17:22:22 +02:00
Michael Shilman
0609971609
Fix deepscan
2021-05-08 21:51:32 +08:00
Gaëtan Maisse
86899610c6
e2e: fix name replacement in repro config, add hack for CRA setup, ensure repro is a git repo
2021-04-30 23:25:45 +02:00
Gaëtan Maisse
d42bb9e89c
Revert "e2e: clean unnecessary folder "tooling""
...
This reverts commit 4aefea59
2021-04-30 09:40:57 +02:00
Gaëtan Maisse
4aefea598e
e2e: clean unnecessary folder "tooling"
2021-04-30 08:39:47 +02:00
Gaëtan Maisse
8ac0be88b2
e2e: always use npx to bootstrap example and yarn dlx to run sb init
...
The e2e process is the following:
- Use `npx` or bare `yarn init` to generate an app
- Install Yarn 2 in the generated app
- If running with `--e2e` then configure Yarn 2 with stricter options and to use local registry
- Add TypeScript and other required deps if needed (using Yarn 2)
- Init Storybook using Yarn 2 with `yarn dlx sb init ...`
2021-04-30 00:03:05 +02:00
Clément DUNGLER
2be11d0df8
fix e2e and track progression
2021-04-29 22:29:11 +02:00
Clément DUNGLER
fdbf0020cf
add generator option to repro, move e2e configs
2021-04-27 23:25:29 +02:00
Clément DUNGLER
2412e20a8b
use repro in e2e
2021-04-20 22:23:38 +02:00
Gaëtan Maisse
9ece9c584b
ci: rework E2E tests in CircleCI
...
New layout:
- `e2e-tests-core` for "officially" supported frameworks : Vue + Angular (+ React + Web Components in e2e-tests-pnp)
- `e2e-tests-extended` for other frameworks: Preact, Svelte, Riot, Rax etc
- `e2e-tests-pnp` for some frameworks/setups compatible with PnP: React + WC
2021-04-13 22:14:27 +02:00
Gaëtan Maisse
95dd517b32
e2e: disable yarn immutable install by default during E2E tests
...
For details, see https://github.com/yarnpkg/berry/blob/master/CHANGELOG.md#300-rc1
2021-04-12 19:03:52 +02:00
Gaëtan Maisse
98fa420bef
chore: move to Yarn 2 🧶
2021-04-07 18:25:38 +02:00
Gaëtan Maisse
9a5933b49a
e2e: fix a typo currently preventing us to run Yarn 2 PnP test in the CI
2021-02-15 21:20:09 +01:00
Gaëtan Maisse
149b412b62
Merge branch 'next' into fix/sb-cli-prompt
2021-01-13 20:33:29 +01:00
Gaëtan Maisse
8364d87855
e2e: remove outdated deletion of yarn_2_cra
config
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:42 +01:00
Gaëtan Maisse
17f0857292
e2e: add CLI option to skip some framework
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:42 +01:00
Gaëtan Maisse
ccf5de2d67
e2e: rename everything related to Yarn 2 to Yarn 2 PnP as there is now a node_modules mode too
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:42 +01:00
Gaëtan Maisse
df5bb84ffd
e2e: use official release of Yarn 2
...
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
2021-01-12 13:35:41 +01:00
Yann Braga
67037aa6aa
fix(e2e): correct local cli path
2020-12-27 00:23:40 +01:00
Gaëtan Maisse
e440498fc6
e2e: update missing package extensions for Yarn 2 tests
2020-11-16 14:05:38 +01:00
Gaëtan Maisse
09ddc14d18
e2e: use unreleased version of Yarn 2 to fix issue with fsevents patch
2020-11-16 14:05:38 +01:00
Gaëtan Maisse
bb44e7c923
e2e: move dep install step before SB init
...
- This better mimic what user are doing when using SB init
- Ensure we have a proper yarn.lock before running `sb init` and so SB cli will use yarn instead of NPM.
2020-11-14 11:58:04 +01:00
Gaëtan Maisse
e1e9a3fab9
e2e: remove setResolution
step
2020-11-14 11:58:02 +01:00
Gaëtan Maisse
d922af0ec1
ci: move back angular E2E tests to classic executor as they rework on Node 10
2020-11-12 18:50:53 +01:00
Gaëtan Maisse
41f80ec6a7
ci: extract cra_bench in a dedicated job
...
CRA Bench requires Node 12 and isn't a "true" E2E test so it makes sense to move it in a dedicated job.
2020-10-12 22:33:27 +02:00
Gaëtan Maisse
c9a13a36b7
ci: run Angular E2E tests on executors with the latest version of Node 12
2020-10-12 21:12:43 +02:00
Gaëtan Maisse
5b992ae37c
ci: display yarn install/add command output when running the E2E tests
...
It helps a lot during investigation of some dependency issues and avoid to have to use SSH to debug things.
2020-10-10 09:49:05 +02:00
Gaëtan Maisse
8aa8926911
refactor: apply the same dispatch for all scripts relying on CircleCI node concurrency
2020-10-03 18:23:37 +02:00
Yann Braga
c064db459f
cli(e2e): add clean slate option
...
- This allows to delete existing projects before running tests
2020-09-24 14:58:27 +02:00
merceyz
49048fd2ab
chore: fix test
2020-09-11 12:40:37 +02:00
Gaëtan Maisse
6c9f09f25e
refactor(e2e): rename tests folders to {{name}}-{{version}}
...
It was previously `{{name}}-v{{version}}` but the `v` isn't needed as we are using `latest` version in many and `vX-lts` for angular.
2020-07-25 19:59:01 +02:00
Gaëtan Maisse
cd1b48f245
feat(e2e): add --use-local-sb-cli
flag to run E2E tests with local @storybook/cli package
2020-07-25 19:59:00 +02:00
Gaëtan Maisse
ea8c5ee428
feat(e2e): use latest version of Yarn 2 when running tests
...
Using `latest` keyword with yarn 1 resolves to Yarn 1.x but we need Yarn 2.
2020-07-25 19:58:59 +02:00
Gaëtan Maisse
b1ad174bf3
refactor(e2e): make yarn add/install
command run in e2e compatible with Yarn 2
2020-07-25 19:58:59 +02:00
Gaëtan Maisse
6515930833
refactor(e2e): use base CRA tests config for Yarn 2 instead of a custom one
2020-07-25 19:58:59 +02:00
Gaëtan Maisse
7e95114d79
feat(e2e): introduce --use-yarn-2
option to run tests with Yarn 2
2020-07-25 19:58:57 +02:00
tooppaaa
5f407b762b
Merge remote-tracking branch 'origin/next' into feature/essentialsCLI
2020-06-30 22:22:12 +02:00
Gaëtan Maisse
27c3c730f7
e2e: fix name of tests config to be valid npm project name
...
These names are used to init NPM project and so must follow validation rules:
https://github.com/npm/validate-npm-package-name
Moreover, they are now all consistant.
2020-06-30 20:36:31 +02:00
tooppaaa
ffb813a3e8
e2e: add anuglar v7-lts
2020-06-29 22:52:19 +02:00
tooppaaa
1367aea2b8
e2e: add anuglar v7-lts
2020-06-29 22:29:25 +02:00
tooppaaa
65f16f6c28
log what test failed
2020-06-25 00:06:09 +02:00
tooppaaa
46c298ca54
fix e2e
2020-06-05 23:10:19 +02:00
Norbert de Langen
7b8897b36c
Merge branch 'next' into feature/e2eZeroConfig
...
# Conflicts:
# scripts/run-e2e.ts
# yarn.lock
2020-06-04 17:46:37 +02:00
Gaëtan Maisse
23459576b8
test(e2e): improve jobs assignment on CI nodes
...
With the previous algorithm, some nodes have no jobs assigned to them due to rounding consideration.
For example with 10 nodes and 13 jobs to assign:
13 jobs / 10 nodes -> 1.3 jobs per node -> rounded to 2 -> only the 1st 6 nodes run 2 jobs, the 7th 1 job and the other 0 job.
Using a modulo ensures that each node will at least run 1 job.
2020-05-29 20:49:40 +02:00
Gaëtan Maisse
df737246d7
fix(e2e): remove skip-install
option from sb init command
...
Removed this option because it can hide some issues with dependency installation process of @storybook/cli.
For instance, missing Yarn flags needed to have the CLI working in Yarn workspaces.
Also, as `sb init` is now running `yarn/npm install` the resolution step has to be made before init Storybook.
2020-05-29 20:47:10 +02:00
tooppaaa
615dd52266
Core: Close server when e2e test failed
2020-05-22 09:02:08 +02:00