My notes from ChatGPT: List of Cancer hospitals in India

Here is a list of some well-known cancer hospitals in India: Tata Memorial Hospital, Mumbai : One of the oldest and most reputed cancer hospitals in India, known for its comprehensive cancer care and research. All India Institute of Medical Sciences (AIIMS), New Delhi : AIIMS is a premier medical institute in India with a dedicated cancer treatment center that offers advanced care and research facilities. Adyar Cancer Institute, Chennai : Known for its expertise in cancer treatment and research, particularly in radiation oncology and surgical oncology. Rajiv Gandhi Cancer Institute and Research Centre, Delhi : A leading cancer hospital providing comprehensive cancer care with state-of-the-art facilities. Cancer Institute (WIA), Chennai : Founded by Dr. Muthulakshmi Reddy, it is one of the oldest cancer hospitals in India, known for its pioneering work in cancer treatment and research. Apollo Hospitals, Chennai : Part of the Apollo Group, it offers specialized cancer care across various...

Creating a Cypress boilerplate using Typescript

 

  1. Install nodejs LTS 
  2. Install TypeScript globally
npm i -g typescript@latest
  1. Create a folder for testing in your project. Say CypressTypescript
  2. Run the following command to create a package.json
npm init
  1. Install Cypress
npm install cypress --save-dev
  1. Run cypress:
npx cypress open

Click E2E-testing to generate basic configuration files:



7. Click Continue in the next screen



  1. Create TypeScript config file in the cypress directory where package.json is located.
npx tsc --init

Add the following code in tsconfig:

{
  "compilerOptions": {
    "target": "ES2015",
    "lib": ["ES2015", "dom"],
    "types": ["cypress", "node"]
  },
  "include": ["**/*.ts"]
}
  1. Change cypress.config.js to cypress.config.ts and replace the code with the following one:
import { defineConfig } from "cypress";

export default defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      // implement node event listeners here
    },
    specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}'
  },
});
  1. Create folder page-objects inside cypress folder.
  2. Create folders specs inside cypress folder.


Common practices and conventions that we should be following:

  1. All the tests should be created in e2e folder.
  2. All page objects will be create in page-objects folder. It is good to create further sub-folder if there are multiple pages.
  3. All specs should be created under specs folder. Again, sub-folders can be created based on the related specs.
  4. All fixtures should be created in fixtures folder. Create sub-folders for related jsons.
  5. Any custom commands should be written in command.ts
  6. All file names should be kebab-case. example: google-search.page.ts
  7. The page-objects files should be ending with .page.ts
  8. The specs files should be ending with .specs.js

Yay! Happy Coding.