From 1dae6b8c58edd18d828161af093e41d71f753771 Mon Sep 17 00:00:00 2001 From: Bishajit <67888547+Bishajit@users.noreply.github.com> Date: Fri, 1 Oct 2021 15:32:30 -0400 Subject: [PATCH 01/17] Delete kura_test_repo directory --- kura_test_repo/Jenkinsfile | 31 - kura_test_repo/README.md | 68 - kura_test_repo/cypress.json | 7 - kura_test_repo/cypress/fixtures/example.json | 5 - .../1-getting-started/todo.spec.js | 143 - .../2-advanced-examples/actions.spec.js | 299 - .../2-advanced-examples/aliasing.spec.js | 39 - .../2-advanced-examples/assertions.spec.js | 177 - .../2-advanced-examples/connectors.spec.js | 97 - .../2-advanced-examples/cookies.spec.js | 77 - .../2-advanced-examples/cypress_api.spec.js | 202 - .../2-advanced-examples/files.spec.js | 88 - .../2-advanced-examples/local_storage.spec.js | 52 - .../2-advanced-examples/location.spec.js | 32 - .../2-advanced-examples/misc.spec.js | 104 - .../2-advanced-examples/navigation.spec.js | 56 - .../network_requests.spec.js | 163 - .../2-advanced-examples/querying.spec.js | 114 - .../spies_stubs_clocks.spec.js | 205 - .../2-advanced-examples/traversal.spec.js | 121 - .../2-advanced-examples/utilities.spec.js | 110 - .../2-advanced-examples/viewport.spec.js | 59 - .../2-advanced-examples/waiting.spec.js | 31 - .../2-advanced-examples/window.spec.js | 22 - .../cypress/integration/test.spec.js | 10 - kura_test_repo/cypress/plugins/index.js | 22 - kura_test_repo/cypress/support/commands.js | 25 - kura_test_repo/cypress/support/index.js | 20 - kura_test_repo/package-lock.json | 16284 ---------------- kura_test_repo/package.json | 39 - kura_test_repo/public/favicon.ico | Bin 22382 -> 0 bytes kura_test_repo/public/index.html | 43 - kura_test_repo/public/logo192.png | Bin 8581 -> 0 bytes kura_test_repo/public/logo512.png | Bin 22920 -> 0 bytes kura_test_repo/public/manifest.json | 25 - kura_test_repo/public/robots.txt | 2 - kura_test_repo/src/App.css | 22 - kura_test_repo/src/App.js | 28 - kura_test_repo/src/App.test.js | 9 - kura_test_repo/src/index.css | 13 - kura_test_repo/src/index.js | 12 - kura_test_repo/src/logo.svg | 1 - kura_test_repo/src/pages/Example1Page.js | 18 - kura_test_repo/src/pages/Example2Page.js | 56 - kura_test_repo/src/pages/Example3Page.js | 77 - kura_test_repo/src/pages/Example4Page.js | 148 - kura_test_repo/src/pages/HomePage.js | 39 - kura_test_repo/src/pages/NotFoundPage.js | 5 - kura_test_repo/src/pages/index.js | 6 - kura_test_repo/src/serviceWorker.js | 135 - 50 files changed, 19341 deletions(-) delete mode 100644 kura_test_repo/Jenkinsfile delete mode 100644 kura_test_repo/README.md delete mode 100644 kura_test_repo/cypress.json delete mode 100644 kura_test_repo/cypress/fixtures/example.json delete mode 100644 kura_test_repo/cypress/integration/1-getting-started/todo.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/actions.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/aliasing.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/assertions.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/connectors.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/cookies.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/cypress_api.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/files.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/local_storage.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/location.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/misc.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/navigation.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/network_requests.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/querying.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/spies_stubs_clocks.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/traversal.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/utilities.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/viewport.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/waiting.spec.js delete mode 100644 kura_test_repo/cypress/integration/2-advanced-examples/window.spec.js delete mode 100644 kura_test_repo/cypress/integration/test.spec.js delete mode 100644 kura_test_repo/cypress/plugins/index.js delete mode 100644 kura_test_repo/cypress/support/commands.js delete mode 100644 kura_test_repo/cypress/support/index.js delete mode 100644 kura_test_repo/package-lock.json delete mode 100644 kura_test_repo/package.json delete mode 100644 kura_test_repo/public/favicon.ico delete mode 100644 kura_test_repo/public/index.html delete mode 100644 kura_test_repo/public/logo192.png delete mode 100644 kura_test_repo/public/logo512.png delete mode 100644 kura_test_repo/public/manifest.json delete mode 100644 kura_test_repo/public/robots.txt delete mode 100644 kura_test_repo/src/App.css delete mode 100644 kura_test_repo/src/App.js delete mode 100644 kura_test_repo/src/App.test.js delete mode 100644 kura_test_repo/src/index.css delete mode 100644 kura_test_repo/src/index.js delete mode 100644 kura_test_repo/src/logo.svg delete mode 100644 kura_test_repo/src/pages/Example1Page.js delete mode 100644 kura_test_repo/src/pages/Example2Page.js delete mode 100644 kura_test_repo/src/pages/Example3Page.js delete mode 100644 kura_test_repo/src/pages/Example4Page.js delete mode 100644 kura_test_repo/src/pages/HomePage.js delete mode 100644 kura_test_repo/src/pages/NotFoundPage.js delete mode 100644 kura_test_repo/src/pages/index.js delete mode 100644 kura_test_repo/src/serviceWorker.js diff --git a/kura_test_repo/Jenkinsfile b/kura_test_repo/Jenkinsfile deleted file mode 100644 index b6f5f79b..00000000 --- a/kura_test_repo/Jenkinsfile +++ /dev/null @@ -1,31 +0,0 @@ -pipeline { - agent any - stages { - stage ('Build') { - steps { - sh 'rm -rf ./kura_test_repo/cypress2' - sh ''' - npm install - ''' - } - } - stage ('Second') { - agent { - label 'React-dev' - } - steps { - sh ''' - npm install cypress - npm install mocha - npx cypress run --spec ./cypress/integration/test.spec.js - ''' - } - post { - always { - junit 'results/cypress-report.xml' - } - - } - } - } -} diff --git a/kura_test_repo/README.md b/kura_test_repo/README.md deleted file mode 100644 index c4039ccf..00000000 --- a/kura_test_repo/README.md +++ /dev/null @@ -1,68 +0,0 @@ -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.
-You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.
-It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.
-Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). - -### Code Splitting - -This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting - -### Analyzing the Bundle Size - -This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size - -### Making a Progressive Web App - -This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app - -### Advanced Configuration - -This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration - -### Deployment - -This section has moved here: https://facebook.github.io/create-react-app/docs/deployment - -### `npm run build` fails to minify - -This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify diff --git a/kura_test_repo/cypress.json b/kura_test_repo/cypress.json deleted file mode 100644 index 09b00a6d..00000000 --- a/kura_test_repo/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "reporter": "junit", - "reporterOptions": { - "mochaFile": "results/cypress-report.xml", - "toConsole": true - } -} diff --git a/kura_test_repo/cypress/fixtures/example.json b/kura_test_repo/cypress/fixtures/example.json deleted file mode 100644 index 086b4fc4..00000000 --- a/kura_test_repo/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/kura_test_repo/cypress/integration/1-getting-started/todo.spec.js b/kura_test_repo/cypress/integration/1-getting-started/todo.spec.js deleted file mode 100644 index 5705d27e..00000000 --- a/kura_test_repo/cypress/integration/1-getting-started/todo.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/// - -// Welcome to Cypress! -// -// This spec file contains a variety of sample tests -// for a todo list app that are designed to demonstrate -// the power of writing tests in Cypress. -// -// To learn more about how Cypress works and -// what makes it such an awesome testing tool, -// please read our getting started guide: -// https://on.cypress.io/introduction-to-cypress - -describe('example to-do app', () => { - beforeEach(() => { - // Cypress starts out with a blank slate for each test - // so we must tell it to visit our website with the `cy.visit()` command. - // Since we want to visit the same URL at the start of all our tests, - // we include it in our beforeEach function so that it runs before each test - cy.visit('https://example.cypress.io/todo') - }) - - it('displays two todo items by default', () => { - // We use the `cy.get()` command to get all elements that match the selector. - // Then, we use `should` to assert that there are two matched items, - // which are the two default items. - cy.get('.todo-list li').should('have.length', 2) - - // We can go even further and check that the default todos each contain - // the correct text. We use the `first` and `last` functions - // to get just the first and last matched elements individually, - // and then perform an assertion with `should`. - cy.get('.todo-list li').first().should('have.text', 'Pay electric bill') - cy.get('.todo-list li').last().should('have.text', 'Walk the dog') - }) - - it('can add new todo items', () => { - // We'll store our item text in a variable so we can reuse it - const newItem = 'Feed the cat' - - // Let's get the input element and use the `type` command to - // input our new list item. After typing the content of our item, - // we need to type the enter key as well in order to submit the input. - // This input has a data-test attribute so we'll use that to select the - // element in accordance with best practices: - // https://on.cypress.io/selecting-elements - cy.get('[data-test=new-todo]').type(`${newItem}{enter}`) - - // Now that we've typed our new item, let's check that it actually was added to the list. - // Since it's the newest item, it should exist as the last element in the list. - // In addition, with the two default items, we should have a total of 3 elements in the list. - // Since assertions yield the element that was asserted on, - // we can chain both of these assertions together into a single statement. - cy.get('.todo-list li') - .should('have.length', 3) - .last() - .should('have.text', newItem) - }) - - it('can check off an item as completed', () => { - // In addition to using the `get` command to get an element by selector, - // we can also use the `contains` command to get an element by its contents. - // However, this will yield the