
Instead of uniformly camelizing the headers, use a map of headers each build matrix key should display in the table
49 lines
1.8 KiB
CoffeeScript
49 lines
1.8 KiB
CoffeeScript
module "Repo page",
|
|
setup: ->
|
|
Ember.run -> Travis.advanceReadiness()
|
|
teardown: ->
|
|
Ember.run -> Travis.reset()
|
|
|
|
test "displaying information on repo page", ->
|
|
visit('/travis-ci/travis-core').then ->
|
|
listsRepos [
|
|
{ slug: 'travis-ci/travis-hub', build: { number: 4, url: '/travis-ci/travis-hub/builds/4', duration: '1 min', finishedAt: '-' } }
|
|
{ slug: 'travis-ci/travis-core', build: { number: 1, url: '/travis-ci/travis-core/builds/1', duration: '30 sec', finishedAt: '3 minutes ago' } }
|
|
{ slug: 'travis-ci/travis-assets', build: { number: 3, url: '/travis-ci/travis-assets/builds/3', duration: '30 sec', finishedAt: 'a day ago' } }
|
|
]
|
|
|
|
displaysRepository
|
|
href: '/travis-ci/travis-core'
|
|
|
|
displaysSummary
|
|
type: 'build'
|
|
id: 1
|
|
repo: 'travis-ci/travis-core'
|
|
commit: '1234567'
|
|
branch: 'master'
|
|
compare: '0123456..1234567'
|
|
finishedAt: '3 minutes ago'
|
|
duration: '30 sec'
|
|
message: 'commit message 1'
|
|
|
|
displaysTabs
|
|
current: { href: '/travis-ci/travis-core', active: true }
|
|
builds: { href: '/travis-ci/travis-core/builds' }
|
|
build: { hidden: true }
|
|
job: { hidden: true }
|
|
|
|
listsJobs
|
|
table: '#jobs'
|
|
headers: ['Job', 'Duration', 'Finished', 'Ruby']
|
|
jobs: [
|
|
{ id: 1, color: 'green', number: '1.1', repo: 'travis-ci/travis-core', finishedAt: '3 minutes ago', duration: '30 sec', rvm: 'rbx' }
|
|
{ id: 2, color: 'red', number: '1.2', repo: 'travis-ci/travis-core', finishedAt: '2 minutes ago', duration: '40 sec', rvm: '1.9.3' }
|
|
]
|
|
|
|
listsJobs
|
|
table: '#allowed_failure_jobs'
|
|
headers: ['Job', 'Duration', 'Finished', 'Ruby']
|
|
jobs: [
|
|
{ id: 3, color: '', number: '1.3', repo: 'travis-ci/travis-core', finishedAt: '-', duration: '-', rvm: 'jruby' }
|
|
]
|