From 4fe10fc9d094235ad977ef8ca0cf8638a48aa013 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Tue, 15 Aug 2023 20:41:15 +0300 Subject: [PATCH] wip: first cypress tests that should work --- .gitignore | 9 ++++++++- cypress.json | 6 ++++++ cypress/.gitignore | 2 ++ cypress/integration/index.spec.ts | 12 ++++++++++++ cypress/plugins/index.js | 11 +++++++++++ cypress/support/index.js | 1 + minecraft-server.mjs | 31 +++++++++++++++++++++++++++++++ package.json | 12 ++++++++---- 8 files changed, 79 insertions(+), 5 deletions(-) create mode 100644 cypress.json create mode 100644 cypress/.gitignore create mode 100644 cypress/integration/index.spec.ts create mode 100644 cypress/plugins/index.js create mode 100644 cypress/support/index.js create mode 100644 minecraft-server.mjs diff --git a/.gitignore b/.gitignore index 5678b4a2..1a3c5c10 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,13 @@ node_modules/ package-lock.json .vscode public +*.log +.env.local +Thumbs.db +build +dist .DS_Store .idea/ -*.iml \ No newline at end of file +world +out +*.iml diff --git a/cypress.json b/cypress.json new file mode 100644 index 00000000..59c1828a --- /dev/null +++ b/cypress.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://raw.githubusercontent.com/cypress-io/cypress/develop/cli/schema/cypress.schema.json", + "baseUrl": "http://localhost:8080", + "testFiles": "**/*.spec.ts", + "video": false +} diff --git a/cypress/.gitignore b/cypress/.gitignore new file mode 100644 index 00000000..3451417e --- /dev/null +++ b/cypress/.gitignore @@ -0,0 +1,2 @@ +screenshots +fixtures diff --git a/cypress/integration/index.spec.ts b/cypress/integration/index.spec.ts new file mode 100644 index 00000000..2045c052 --- /dev/null +++ b/cypress/integration/index.spec.ts @@ -0,0 +1,12 @@ +/// + +it('Renders menu (options button)', () => { + // todo use