Commit Graph

10 Commits (9441f781fd9b7c59c45394f7f432f8b2ceb64542)

Author SHA1 Message Date
Oliver Eyton-Williams 8d12376931
chore(cypress): speed up seeding when testing (#50825) 2023-06-29 23:18:10 +07:00
Moshe 38aa2dbba2
test(e2e): fix flaky firefox tests (#50039) 2023-06-16 07:46:45 +02:00
Mrugesh Mohapatra c581532086
fix: disable flaky codeally e2e tests (#50554) 2023-05-30 15:30:56 +05:30
Krzysztof G 6504847b26
fix(e2e): reduce test flakiness (#50072)
* fix: visit page before each test

* fix: ensure editor is visible when checking contents

* fix: click after clear
2023-04-25 10:11:23 +02:00
Mrugesh Mohapatra 162336365b
fix(e2e): update workflows and cypress configs (#49947)
* chore: bump cypress to v11

* fix: remove firefox downgrade

* fix: remove passing specs in the run-script
2023-04-05 08:33:22 -07:00
Oliver Eyton-Williams d7848ae01a
feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
Sem Bauke 12fd5c4d32
feat: enable TypeScript for Cypress (#48701)
* feat: enable TypeScript for Cypress

* fix: run both js and ts in workflow
2022-12-10 17:12:42 +02:00
Tom eb9f86a85b
feat: remove playwright webkit (#48142)
* feat: remove playwright webkit

* chore: remove line
2022-10-25 12:36:18 +05:30
Oliver Eyton-Williams 7b24e7e597
fix(test): stop filtering out third-party (#47982)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-10-12 01:23:32 +05:30
Niraj Nandish 0214eb2488
feat: cypress 10 (#47886)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-10-11 18:40:25 +05:30