Skip to content

Instantly share code, notes, and snippets.

View ohrite's full-sized avatar
💭
🎶 solving everything with pairing

Doc Ritezel ohrite

💭
🎶 solving everything with pairing
View GitHub Profile
@ohrite
ohrite / LICENSE
Last active July 8, 2023 17:33
Scenic test helpers
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
@ohrite
ohrite / axe.rb
Last active October 7, 2024 20:20
Cuprite support for axe-core-api
# spec/support/axe.rb
module Capybara
class Session
alias_method :execute_async_script, :evaluate_async_script
end
module Cuprite
class Browser
alias_method :execute_async_script, :evaluate_async
function NamedValuesTransformer(name, fields) {
this.name = name
this.fields = fields
}
NamedValuesTransformer.prototype.toAttachment = function() {
var self = this
var fields = Object.keys(this.fields).map(function(key) { return new FieldTransformer(key, self.fields[key]).toField() })
return({fallback: "New Google Forms Contact", title: this.name, fields: fields})
}