Skip to content

Instantly share code, notes, and snippets.

View jennifer-shehane's full-sized avatar

Jennifer Shehane jennifer-shehane

View GitHub Profile

Day 1

May 27, 2015

Microsoft Developer Advocate for Internet Explorer. Contributing Editor to Smashing Mag.

Woah, You Can Test IE / Microsoft Edge on a Mac & Linux?

How can I know developers pain points without working in the same environment as developers. That's why I use a Mac.

@jennifer-shehane
jennifer-shehane / File_Upload_Example.coffee
Last active September 30, 2015 14:51
Example of test written to cover file uploads implemented in blueimp/jQuery-File-Upload
describe "Answer Files List [0d0]", ->
before -> @visit()
beforeEach ->
cy
.server()
.fixture("answer_photos").as("answerFiles")
.fixture("answer").as("answer")
.then ->
@answerModel = App.request "new:answer:entity", @answer.item
describe "Questions List (Form Builder) [lhw]", ->
before -> @visit()
beforeEach ->
cy
.server()
.fixture("form_template").as("formTemplate")
.fixture("question_headings").as("questionHeadings")
.fixture("question_heading").as("questionHeading")
describe "Questions List", ->
beforeEach ->
cy
.server()
context "layout", ->
beforeEach ->
cy
.route(/form_templates\/\d+$/, "fixture:form_template").as("getFormTemplate")
.route(/form_templates\/\d+\/question_headings/, "fixture:question_headings").as("getQuestionHeadings")
@jennifer-shehane
jennifer-shehane / entity.coffee
Created November 23, 2015 19:47
CypressError: The XHR server is unavailable or missing. This should never happen and likely is a bug. Open an issue if you see this message.
describe "Folder File Entity [a7v]", ->
before ->
@visit()
describe "Folder Entity [66f]", ->
before ->
@visit()
cy.server(delay: 600)
it "foos [2a7]", ->
@jennifer-shehane
jennifer-shehane / index.html
Created April 28, 2016 00:01
Intro to JS in-class exercises
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<p>This is awesome JS code.</p>
<script src="mycode.js"></script>
</body>
</html>
@jennifer-shehane
jennifer-shehane / cypress_example_spec.js
Last active December 4, 2017 11:47
Selenium versus Cypress.io
describe('Kitchen Sink', function(){
it('cy.should - assert that <title> is correct', function(){
cy
.visit('https://example.cypress.io/')
.title().should('include', 'Kitchen Sink')
})
context('Querying', function(){
beforeEach(function(){
cy.visit('https://example.cypress.io/commands/querying')
@jennifer-shehane
jennifer-shehane / domain-store.js
Created June 15, 2016 15:10
Example domain store in mobx
import {observable, autorun} from 'mobx';
import uuid from 'node-uuid';
export class TodoStore {
authorStore;
transportLayer;
@observable todos = [];
@observable isLoading = true;
constructor(transportLayer, authorStore) {
import { computed, observable, action } from 'mobx'
class Projects {
@observable projects = []
constructor (projects) {
this.projects = projects
}
removeProject (projectId) {