diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fb2ff460..0754b7ca 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,13 +34,13 @@ jobs:
run: |
echo "CYPRESS_RECORD_KEY=${{ secrets.CYPRESS_RECORD_KEY }}" >> $GITHUB_ENV
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
- echo "CYPRESS_INSTALL_BINARY=6.0.0" >> $GITHUB_ENV
+ echo "CYPRESS_INSTALL_BINARY=13.14.2" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- name: Cypress run
- uses: cypress-io/github-action@v2
+ uses: cypress-io/github-action@v4
with:
browser: ${{ matrix.browsers }}
build: npm run build
diff --git a/.gitignore b/.gitignore
index 340ac145..a1b805c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@
# production
/build
+/dist
# misc
.DS_Store
diff --git a/.husky/pre-commit b/.husky/pre-commit
old mode 100755
new mode 100644
diff --git a/cypress-install.js b/cypress-install.js
index 1cd9c4bb..07f541bd 100644
--- a/cypress-install.js
+++ b/cypress-install.js
@@ -1,12 +1,15 @@
-const util = require('cypress/lib/util');
-const execa = require('execa');
+import { spawn } from 'child_process';
-const pkg = util.pkgVersion();
+const child = spawn('npm', ['run', 'cypress:install'], {
+ stdio: 'inherit'
+});
-(async () => {
- console.log('Installing Cypress ' + pkg);
- await execa('npm', ['run', 'cypress:install'], {
- env: { CYPRESS_INSTALL_BINARY: pkg }
- });
- console.log('Cypress installed');
-})();
+child.on('close', code => {
+ if (code) {
+ console.error('Cypress installation failed with code:', code);
+ }
+});
+
+child.on('error', error => {
+ console.error('Cypress installation error:', error);
+});
diff --git a/cypress.config.ts b/cypress.config.ts
new file mode 100644
index 00000000..beafa1b7
--- /dev/null
+++ b/cypress.config.ts
@@ -0,0 +1,8 @@
+const { defineConfig } = require('cypress');
+
+module.exports = defineConfig({
+ e2e: {
+ baseUrl: 'http://localhost:3001',
+ retries: 4
+ }
+})
diff --git a/cypress.json b/cypress.json
deleted file mode 100644
index 2a37028d..00000000
--- a/cypress.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "projectId": "kqzjwp"
-}
\ No newline at end of file
diff --git a/cypress/integration/home.js b/cypress/e2e/home.cy.ts
similarity index 100%
rename from cypress/integration/home.js
rename to cypress/e2e/home.cy.ts
diff --git a/cypress/integration/play-button.js b/cypress/e2e/play-button.cy.ts
similarity index 100%
rename from cypress/integration/play-button.js
rename to cypress/e2e/play-button.cy.ts
diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js
deleted file mode 100644
index 7fc486c3..00000000
--- a/cypress/plugins/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/* eslint-disable no-unused-vars */
-// /