Skip to content

Instantly share code, notes, and snippets.

View asciidisco's full-sized avatar
🏠
Working from home

Sebastian Golasch asciidisco

🏠
Working from home
View GitHub Profile
@asciidisco
asciidisco / fronttrends_TEST.js
Created May 7, 2013 11:59
Test of the fronttrends register page
module.exports = {
'fronttrends register anchor is working': function (test) {
'use strict';
test.expect(6)
.open('http://2013.front-trends.com/')
.assert.chain()
.url('http://2013.front-trends.com/', 'Url is as expected')
.exists('.register-link', 'Register anchor element exists')
.visible('.register-link', 'Register anchor element is visible')
@asciidisco
asciidisco / denkwerk_home_blog_TEST.js
Created May 7, 2013 12:00
Test of the denkwerk homepage & the denkwerk blog overview
module.exports = {
'denkwerk blog is reachable': function (test) {
'use strict';
test.expect(12)
.open('http://denkwerk.com')
.assert.chain()
.title('denkwerk GmbH', 'Title of the page is as expected')
.url('http://www.denkwerk.com/', 'Denkwerk url is as expected')
.exists('#menu-item-3133 a', 'Blog anchor element exists')
@asciidisco
asciidisco / dalekme.md
Last active December 17, 2015 04:08
Overview about DalekJS ressources (Try ing to keep it up to date)

Core tech

  • Java (no emoticon is sad enough)
  • Node (just for build, testing, cmd stuff at work / at home for nearly everything)
  • Ruby (only for sass/compass & Vagrant)

JS Stack (mostly used libs.)

  • Backbone
  • jQuery
@asciidisco
asciidisco / gist:6157619
Created August 5, 2013 17:11
Facebook log in with DalekJS
module.exports = {
'Facebook log in': function (test) {
test.open('https://facebook.com')
.assert.exists('input[name="email"]')
.assert.exists('input[name="pass"]')
.type('input[name="email"]', 'me@notyou.com')
.type('input[name="pass"]', 'mySecret')
.submit('#login_form')
.screenshot('facebook.png')
@asciidisco
asciidisco / dalek_flocke.js
Created August 6, 2013 10:39
Many screenshots from different pages in different resolutions
module.exports = {
'A lot of screenshots': function (test) {
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}];
var pages = ['http://facebook.com', 'http://twitter.com', 'http://dalekjs.com'];
resolutions.forEach(function (res) {
pages.forEach(function (page) {
test.open(page)
.resize(res)
@asciidisco
asciidisco / execute.md
Created October 7, 2013 14:29
Dalek Execute DOM Manipulator

Executes a JavaScript function within the browser context

  test.open('http://adomain.com')
     .execute(function () {
       document.getElementById('test').innerText = 'Whatever';
     })
     .done();
@asciidisco
asciidisco / gist:7080173
Created October 21, 2013 08:00
Dalek talk abstract
DalekJS - UI testing an der Front
---------------------------------
Das testen von Webseiten und Webapps ist die unrühmliche Bastard unserer Zeit. Nachdem wir dieses Biest namens 'Unit testing' gezähmt haben, ist es jetzt an der Zeit, unsere Frontlinien an eine andere Front zu verlagern. Dieses Mal geht es um euer UI. Und nein, wir penetrieren nicht unseren alten Alliierten Selenium und wir kämpfen auch nicht in den Ruby Steppen von Watir, nein meine Freunde, dieses mal ist es an JavaScript unsere Bugs ein für alle mal zu besiegen.
@asciidisco
asciidisco / nodestuff.js
Created November 8, 2013 14:26
nodestuff
// config.js
module.exports = {
dev: {
dbname: 'foo',
host: '127.0.0.1',
pass: 'bar',
port: 1223
},
prod: {
dbname: 'baz',
@asciidisco
asciidisco / dalek_waitFor.js
Created November 15, 2013 13:35
dalek_waitFor.js
// you app code
window.qa = {};
$.get('foobar.php', function (data) {
// this line could be removed during the build
window.qa.requestFooBar = true;
});
// in your dalek test
'waitFor ajax': function (test) {
test.waitFor(function () {