From 28b02cdfb40f85c0732f92fc7a2ce018a0f34477 Mon Sep 17 00:00:00 2001 From: Marcos Date: Tue, 11 Feb 2025 12:52:12 -0600 Subject: [PATCH 1/3] Cypress e2e initial infra (#2548) Co-authored-by: marcosnavarro --- .gitignore | 3 + .../src/components/EvenEasierDeploy.vue | 7 +- .../src/components/views/Credentials.vue | 2 +- .../src/components/views/HelpAndFeedback.vue | 5 +- scripts/get-platforms.bash | 2 +- test/e2e/.lintstagedrc.json | 4 + test/e2e/Dockerfile.connect | 70 + test/e2e/Dockerfile.cypress | 13 + test/e2e/Dockerfile.vscode | 7 + test/e2e/bootstrap-secret.key | 1 + test/e2e/code-server-entry.sh | 25 + test/e2e/config/connect.gcfg | 40 + test/e2e/config/waiton.js | 9 + test/e2e/content-workspace/rmd-site/.Rprofile | 1 + test/e2e/content-workspace/rmd-site/_site.yml | 0 .../content-workspace/rmd-site/another.Rmd | 3 + .../content-workspace/rmd-site/article.Rmd | 3 + test/e2e/content-workspace/rmd-site/index.Rmd | 3 + .../content-workspace/rmd-site/manifest.json | 908 ++++ test/e2e/content-workspace/rmd-site/meta.yaml | 10 + test/e2e/content-workspace/rmd-site/renv.lock | 398 ++ .../rmd-site/renv/.gitignore | 7 + .../rmd-site/renv/activate.R | 1220 ++++++ .../rmd-site/renv/settings.json | 15 + .../content-workspace/rmd-site/rmd-site.Rproj | 15 + test/e2e/content-workspace/static/index.html | 11 + test/e2e/cypress.config.js | 20 + test/e2e/cypress/fixtures/example.json | 5 + test/e2e/cypress/support/commands.js | 25 + test/e2e/cypress/support/e2e.js | 17 + test/e2e/docker-compose.yml | 33 + test/e2e/e2e-test.connect-credentials | 2 + test/e2e/eslint.config.mjs | 36 + test/e2e/justfile | 50 + test/e2e/package-lock.json | 3810 +++++++++++++++++ test/e2e/package.json | 25 + test/e2e/support/commands.js | 144 + test/e2e/support/index.js | 13 + test/e2e/support/selectors.js | 74 + test/e2e/tests/common.cy.js | 20 + test/e2e/tests/credentials.cy.js | 99 + test/e2e/tests/deployments.cy.js | 74 + .../specs/nested-fastapi-deployment.spec.ts | 2 +- 43 files changed, 7225 insertions(+), 6 deletions(-) create mode 100644 test/e2e/.lintstagedrc.json create mode 100644 test/e2e/Dockerfile.connect create mode 100644 test/e2e/Dockerfile.cypress create mode 100644 test/e2e/Dockerfile.vscode create mode 100644 test/e2e/bootstrap-secret.key create mode 100755 test/e2e/code-server-entry.sh create mode 100644 test/e2e/config/connect.gcfg create mode 100644 test/e2e/config/waiton.js create mode 100644 test/e2e/content-workspace/rmd-site/.Rprofile create mode 100644 test/e2e/content-workspace/rmd-site/_site.yml create mode 100644 test/e2e/content-workspace/rmd-site/another.Rmd create mode 100644 test/e2e/content-workspace/rmd-site/article.Rmd create mode 100644 test/e2e/content-workspace/rmd-site/index.Rmd create mode 100644 test/e2e/content-workspace/rmd-site/manifest.json create mode 100644 test/e2e/content-workspace/rmd-site/meta.yaml create mode 100644 test/e2e/content-workspace/rmd-site/renv.lock create mode 100644 test/e2e/content-workspace/rmd-site/renv/.gitignore create mode 100644 test/e2e/content-workspace/rmd-site/renv/activate.R create mode 100644 test/e2e/content-workspace/rmd-site/renv/settings.json create mode 100644 test/e2e/content-workspace/rmd-site/rmd-site.Rproj create mode 100644 test/e2e/content-workspace/static/index.html create mode 100644 test/e2e/cypress.config.js create mode 100644 test/e2e/cypress/fixtures/example.json create mode 100644 test/e2e/cypress/support/commands.js create mode 100644 test/e2e/cypress/support/e2e.js create mode 100644 test/e2e/docker-compose.yml create mode 100644 test/e2e/e2e-test.connect-credentials create mode 100644 test/e2e/eslint.config.mjs create mode 100644 test/e2e/justfile create mode 100644 test/e2e/package-lock.json create mode 100644 test/e2e/package.json create mode 100644 test/e2e/support/commands.js create mode 100644 test/e2e/support/index.js create mode 100644 test/e2e/support/selectors.js create mode 100644 test/e2e/tests/common.cy.js create mode 100644 test/e2e/tests/credentials.cy.js create mode 100644 test/e2e/tests/deployments.cy.js diff --git a/.gitignore b/.gitignore index 9c5dba5bc..91976d23a 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ node_modules *.vsix .pnpm-store .Rproj.user + +# Possible e2e tests deployment assets +test/e2e/content-workspace/**/.posit diff --git a/extensions/vscode/webviews/homeView/src/components/EvenEasierDeploy.vue b/extensions/vscode/webviews/homeView/src/components/EvenEasierDeploy.vue index e92cafb19..afb2a935f 100644 --- a/extensions/vscode/webviews/homeView/src/components/EvenEasierDeploy.vue +++ b/extensions/vscode/webviews/homeView/src/components/EvenEasierDeploy.vue @@ -1,7 +1,10 @@