39 Commits

Author SHA1 Message Date
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
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
tooppaaa
ab78b076ed Add e2e for zero config 2020-05-19 23:29:56 +02:00
tooppaaa
95380d3105 fix... 2020-05-19 10:12:51 +02:00
tooppaaa
e1ada00150 fix path 2020-05-19 09:41:56 +02:00
tooppaaa
c69e28c12f fix ts 2020-05-19 09:13:46 +02:00
tooppaaa
cd8c903437 set resolutions 2020-05-18 23:52:29 +02:00
tooppaaa
b98dd109f8 fix resolution 2020-05-18 23:03:59 +02:00
tooppaaa
438d543680 add tsconfig for scripts 2020-05-18 22:29:50 +02:00
tooppaaa
2d47bfff4c types 2020-05-18 15:10:08 +02:00
Norbert de Langen
b78317c5f2
WIP 2020-05-18 14:58:55 +02:00
tooppaaa
072b774693 core: ci and examples generation 2020-05-09 11:34:50 +02:00