From 7e2af32fa3c6278750a07dca27f1005ee31ecdd5 Mon Sep 17 00:00:00 2001 From: rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:55:55 +0800 Subject: [PATCH] feat: add introduction process on UI --- .../cypress/e2e/component-exist.cy.ts | 4 ++ console/atest-ui/package-lock.json | 11 ++++ console/atest-ui/package.json | 1 + console/atest-ui/src/App.vue | 9 ++- console/atest-ui/src/main.ts | 8 +++ .../atest-ui/src/views/TemplateFunctions.vue | 4 +- docs/README.md | 10 ++++ sample/kubernetes/default/kustomization.yaml | 8 +++ sample/kubernetes/{ => default}/manifest.yaml | 58 +++++++++++++++++-- .../kubernetes/docker.io/kustomization.yaml | 9 +++ sample/kubernetes/kustomization.yaml | 4 -- 11 files changed, 112 insertions(+), 14 deletions(-) create mode 100644 sample/kubernetes/default/kustomization.yaml rename sample/kubernetes/{ => default}/manifest.yaml (55%) create mode 100644 sample/kubernetes/docker.io/kustomization.yaml delete mode 100644 sample/kubernetes/kustomization.yaml diff --git a/console/atest-ui/cypress/e2e/component-exist.cy.ts b/console/atest-ui/cypress/e2e/component-exist.cy.ts index 63596ad5b..3d305788c 100644 --- a/console/atest-ui/cypress/e2e/component-exist.cy.ts +++ b/console/atest-ui/cypress/e2e/component-exist.cy.ts @@ -10,6 +10,7 @@ describe('Suite Manage', () => { it('Create Suite', () => { cy.visit('/') + cy.get('.introjs-skipbutton').click() cy.contains('span', 'Tool Box') cy.get('[test-id="open-new-suite-dialog"]').click() @@ -29,6 +30,7 @@ describe('Suite Manage', () => { const caseAPI = "/api/v2" it('New Case', () => { cy.visit('/') + cy.get('.introjs-skipbutton').click() cy.get('span').contains(suiteName).should('be.visible').click() cy.get('[test-id="open-new-case-dialog"]').click() @@ -43,6 +45,7 @@ describe('Suite Manage', () => { it('Find Case', () => { cy.visit('/') + cy.get('.introjs-skipbutton').click() const searchInput = cy.get('[test-id="search"]') searchInput.type(caseName) searchInput.trigger('keydown', {key: 'Enter'}) @@ -56,6 +59,7 @@ describe('Suite Manage', () => { it('Delete Suite', () => { cy.visit('/') + cy.get('.introjs-skipbutton').click() cy.get('span').contains(suiteName).should('be.visible').click() cy.get('[test-id="suite-editor-api"]').should('have.value', sampleAPIAddress) cy.get('[test-id="suite-del-but"]').click() diff --git a/console/atest-ui/package-lock.json b/console/atest-ui/package-lock.json index d7be43b7f..cc11c2dc7 100644 --- a/console/atest-ui/package-lock.json +++ b/console/atest-ui/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "element-plus": "^2.3.7", + "intro.js": "^7.0.1", "vue": "^3.3.4", "vue-json-viewer": "^3.0.4", "vue-router": "^4.2.2" @@ -6421,6 +6422,11 @@ "node": ">= 0.4" } }, + "node_modules/intro.js": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/intro.js/-/intro.js-7.0.1.tgz", + "integrity": "sha512-1oqz6aOz9cGQ3CrtVYhCSo6AkjnXUn302kcIWLaZ3TI4kKssRXDwDSz4VRoGcfC1jN+WfaSJXRBrITz+QVEBzg==" + }, "node_modules/is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmmirror.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz", @@ -17072,6 +17078,11 @@ "side-channel": "^1.0.4" } }, + "intro.js": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/intro.js/-/intro.js-7.0.1.tgz", + "integrity": "sha512-1oqz6aOz9cGQ3CrtVYhCSo6AkjnXUn302kcIWLaZ3TI4kKssRXDwDSz4VRoGcfC1jN+WfaSJXRBrITz+QVEBzg==" + }, "is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmmirror.com/is-array-buffer/-/is-array-buffer-3.0.2.tgz", diff --git a/console/atest-ui/package.json b/console/atest-ui/package.json index 069ec4d1c..d9aa3bf5d 100644 --- a/console/atest-ui/package.json +++ b/console/atest-ui/package.json @@ -17,6 +17,7 @@ }, "dependencies": { "element-plus": "^2.3.7", + "intro.js": "^7.0.1", "vue": "^3.3.4", "vue-json-viewer": "^3.0.4", "vue-router": "^4.2.2" diff --git a/console/atest-ui/src/App.vue b/console/atest-ui/src/App.vue index 100e59083..db6d18240 100644 --- a/console/atest-ui/src/App.vue +++ b/console/atest-ui/src/App.vue @@ -193,10 +193,12 @@ const viewName = ref('testcase')