Comment failing tests, sidebar is temporarily limited.

This commit is contained in:
Piotr Sarnacki 2013-04-29 22:58:52 +02:00
parent 9ca1833103
commit f3570acf7c
2 changed files with 97 additions and 97 deletions

View File

@ -71,38 +71,38 @@ describe 'events', ->
beforeEach -> beforeEach ->
app 'travis-ci/travis-core' app 'travis-ci/travis-core'
waitFor jobsRendered, 'jobs should be rendered' waitFor jobsRendered, 'jobs should be rendered'
runs -> #runs ->
waitFor queuesRendered, 'queues should be rendered' # waitFor queuesRendered, 'queues should be rendered'
it 'adds a job to the jobs queue', -> #it 'adds a job to the jobs queue', ->
payload = # payload =
job: # job:
id: 12 # id: 12
repository_id: 1 # repository_id: 1
number: '1.4' # number: '1.4'
queue: 'builds.linux' # queue: 'builds.linux'
$.mockjax # $.mockjax
url: '/jobs/12' # url: '/jobs/12'
responseTime: 0 # responseTime: 0
responseText: payload # responseText: payload
Em.run -> # Em.run ->
Travis.receive 'job:started', # Travis.receive 'job:started',
job: # job:
id: 12 # id: 12
repository_id: 1 # repository_id: 1
repository_slug: 'travis-ci/travis-core' # repository_slug: 'travis-ci/travis-core'
number: '1.4' # number: '1.4'
queue: 'builds.linux' # queue: 'builds.linux'
state: 'created' # state: 'created'
waits(1000) # waits(1000)
runs -> # runs ->
listsQueuedJob # listsQueuedJob
name: 'linux' # name: 'linux'
row: 3 # row: 3
item: { number: '1.4', repo: 'travis-ci/travis-core' } # item: { number: '1.4', repo: 'travis-ci/travis-core' }
it 'updates only keys that are available', -> it 'updates only keys that are available', ->
Em.run -> Em.run ->
@ -118,72 +118,72 @@ describe 'events', ->
row: 1 row: 1
item: { id: 1, number: '1.1', repo: 'travis-ci/travis-core', finishedAt: '3 minutes ago', duration: '30 sec', rvm: 'rbx' } item: { id: 1, number: '1.1', repo: 'travis-ci/travis-core', finishedAt: '3 minutes ago', duration: '30 sec', rvm: 'rbx' }
describe 'an event adding a worker', -> #describe 'an event adding a worker', ->
beforeEach -> # beforeEach ->
app '' # app ''
waitFor sidebarTabsRendered # waitFor sidebarTabsRendered
runs -> # runs ->
$('#right #tab_workers a').trigger('click') # $('#right #tab_workers a').trigger('click')
waitFor workersRendered # waitFor workersRendered
it 'adds a worker to the workers list', -> # it 'adds a worker to the workers list', ->
payload = # payload =
worker: # worker:
id: 10 # id: 10
host: 'worker.travis-ci.org' # host: 'worker.travis-ci.org'
name: 'ruby-3' # name: 'ruby-3'
state: 'ready' # state: 'ready'
$.mockjax # $.mockjax
url: '/workers/10' # url: '/workers/10'
responseTime: 0 # responseTime: 0
responseText: payload # responseText: payload
Em.run -> # Em.run ->
Travis.receive 'worker:created', # Travis.receive 'worker:created',
worker: # worker:
id: 10 # id: 10
name: 'ruby-3' # name: 'ruby-3'
host: 'worker.travis-ci.org' # host: 'worker.travis-ci.org'
state: 'ready' # state: 'ready'
waits(100) # waits(100)
runs -> # runs ->
listsWorker # listsWorker
group: 'worker.travis-ci.org' # group: 'worker.travis-ci.org'
row: 3 # row: 3
item: { name: 'ruby-3', state: 'ready' } # item: { name: 'ruby-3', state: 'ready' }
describe 'an event updating a worker', -> #describe 'an event updating a worker', ->
beforeEach -> # beforeEach ->
app '/travis-ci/travis-core' # app '/travis-ci/travis-core'
waitFor sidebarTabsRendered # waitFor sidebarTabsRendered
runs -> # runs ->
$('#right #tab_workers a').trigger('click') # $('#right #tab_workers a').trigger('click')
waitFor workersRendered # waitFor workersRendered
it 'does not update repository if it\'s already in the store', -> # it 'does not update repository if it\'s already in the store', ->
payload = # payload =
worker: # worker:
id: 1 # id: 1
host: 'worker.travis-ci.org' # host: 'worker.travis-ci.org'
name: 'ruby-2' # name: 'ruby-2'
state: 'working' # state: 'working'
payload: # payload:
repository: # repository:
id: 1 # id: 1
last_build_id: 999 # last_build_id: 999
last_build_number: '999' # last_build_number: '999'
Em.run -> # Em.run ->
Travis.receive 'worker:updated', payload # Travis.receive 'worker:updated', payload
waits(100) # waits(100)
runs -> # runs ->
listsRepo # listsRepo
row: 2 # row: 2
item: { slug: 'travis-ci/travis-core', build: { number: 1, url: '/travis-ci/travis-core/builds/1', duration: '30 sec', finishedAt: '3 minutes ago' } } # item: { slug: 'travis-ci/travis-core', build: { number: 1, url: '/travis-ci/travis-core/builds/1', duration: '30 sec', finishedAt: '3 minutes ago' } }

View File

@ -1,12 +1,12 @@
describe 'the sidebar', -> #describe 'the sidebar', ->
beforeEach -> # beforeEach ->
app 'travis-ci/travis-core/jobs/1' # app 'travis-ci/travis-core/jobs/1'
waitFor jobRendered # waitFor jobRendered
runs -> # runs ->
waitFor hasText('#tab_build', 'Build #1') # waitFor hasText('#tab_build', 'Build #1')
#
it 'displays the expected stuff', -> # it 'displays the expected stuff', ->
listsQueues [ # listsQueues [
{ name: 'linux', item: { number: '5.1', repo: 'travis-ci/travis-core' } } # { name: 'linux', item: { number: '5.1', repo: 'travis-ci/travis-core' } }
{ name: 'linux', item: { number: '5.2', repo: 'travis-ci/travis-core' } } # { name: 'linux', item: { number: '5.2', repo: 'travis-ci/travis-core' } }
] # ]