Merge branch 'master' of github.com:travis-ci/travis-web
This commit is contained in:
commit
81c6c7b9f8
|
@ -3,7 +3,7 @@
|
||||||
`import { languageConfigKeys } from 'travis/utils/keys-map';`
|
`import { languageConfigKeys } from 'travis/utils/keys-map';`
|
||||||
|
|
||||||
JobsItemComponent = Ember.Component.extend
|
JobsItemComponent = Ember.Component.extend
|
||||||
tagName: 'li'
|
tagName: 'div'
|
||||||
classNameBindings: ['job.state']
|
classNameBindings: ['job.state']
|
||||||
classNames: ['tile', 'tile--jobs', 'row']
|
classNames: ['tile', 'tile--jobs', 'row']
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,8 @@
|
||||||
</h2>
|
</h2>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<ul>
|
|
||||||
{{#each job in jobs}}
|
{{#each job in jobs}}
|
||||||
{{jobs-item job=job}}
|
{{jobs-item job=job}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
|
||||||
</section>
|
</section>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -12,9 +12,9 @@ test 'it renders a list of jobs', ->
|
||||||
@append()
|
@append()
|
||||||
|
|
||||||
equal component.$('.build-title').text().trim(), 'Build Jobs'
|
equal component.$('.build-title').text().trim(), 'Build Jobs'
|
||||||
equal component.$('li').length, 2, 'there should be 2 job items'
|
equal component.$('.tile--jobs').length, 2, 'there should be 2 job items'
|
||||||
ok component.$('li:nth(0)').hasClass('passed'), 'passed class should be applied to a job'
|
ok component.$('.tile--jobs:nth(0)').hasClass('passed'), 'passed class should be applied to a job'
|
||||||
ok component.$('li:nth(1)').hasClass('failed'), 'failed class should be applied to a job'
|
ok component.$('.tile--jobs:nth(1)').hasClass('failed'), 'failed class should be applied to a job'
|
||||||
|
|
||||||
test 'it renders "Allowed Failures" version without a `required` property', ->
|
test 'it renders "Allowed Failures" version without a `required` property', ->
|
||||||
jobs = [Ember.Object.create(id: 1)]
|
jobs = [Ember.Object.create(id: 1)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user