Skip to content

Instantly share code, notes, and snippets.

View plicjo's full-sized avatar

Joshua Plicque plicjo

View GitHub Profile
@nruth
nruth / selenium.rb
Last active March 22, 2023 13:10
translating old capybara selenium/chrome preferences and switches to new
# load into test setup after `require 'capybara/rails'`
# some sources for below flags and profile settings
# https://stackoverflow.com/questions/43143014/chrome-is-being-controlled-by-automated-test-software/43145088
# https://sqa.stackexchange.com/questions/26051/chrome-driver-2-28-chrome-is-being-controlled-by-automated-test-software-notif
# http://stackoverflow.com/questions/12211781/how-to-maximize-window-in-chrome-using-webdriver-python
# update sources for new Options object
# https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings
# https://github.com/teamcapybara/capybara/blob/master/lib/capybara/selenium/driver.rb
begin
@ali-ehmed
ali-ehmed / platform_graphql_client.rb
Last active March 14, 2022 15:39
RSpec - Stub Graphql Client Adapter
require 'graphql/client'
require 'graphql/client/http'
module PlatformGraphqlClient
# Configure GraphQL endpoint using the basic HTTP network adapter.
HTTP = GraphQL::Client::HTTP.new('http://localhost:3001/api/graphql') do
# def headers(context)
# # Optionally set any HTTP headers
# { "Access-Token": "user-access-token" }
# end
@tlemens
tlemens / README.md
Last active June 9, 2024 13:39
time_ago_in_words and distance_of_time_in_words for Phoenix/Elixir