Skip to content

Instantly share code, notes, and snippets.

View h-parekh's full-sized avatar

Harsh Parekh h-parekh

  • Earth
View GitHub Profile
@h-parekh
h-parekh / site-prism.md
Last active March 28, 2019 22:38 — forked from tgaff/sample.md
What, why and a little bit of how to use site-prism

site prism

Page Object Model gem for ruby Page Objects are like react-components for integration spec code. They let you componentize pages or parts of pages so you don't use css-selectors every where.

If you have page.find('button', text: 'update section') in a lot of tests, when the PM says it should be 'Change Section' you have a lot of changes to make. By sticking this in the page-object it limits the needed scope of change to just that POM and possible the one test that regression checked this.

pages

Let you define elements on your page

@h-parekh
h-parekh / sample_gateway.yml
Last active June 27, 2018 17:46
Sample swagger 2.0 document
AWSTemplateFormatVersion: "2010-09-09"
Description: "Portal Resources Gateway"
Parameters:
ServiceName:
Type: String
Description: The name of the service
HoursArn:
Type: String
Description: Arn for the Hours Lambda
@h-parekh
h-parekh / Installing_jenkins_with_openshift.md
Last active July 12, 2021 19:21
Setup Jenkins (LTS) using Minishift and Docker Hub

Assumptions

  • You are using MacOS 10 or above
  • Have Homebrew installed
  • You need a dev-only setup

Commands

Step 1: Install Minishift and a VirtualBox hypervisor

brew cask install minishift

brew cask install virtualbox