mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:54:41 +08:00
UX: Remove button styles on polls.
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
import componentTest from 'helpers/component-test';
|
||||
moduleForComponent('poll-option', { integration: true });
|
||||
|
||||
componentTest('test poll option', {
|
||||
template: '{{poll-option option=option isMultiple=isMultiple}}',
|
||||
|
||||
setup(store) {
|
||||
this.set('option', Em.Object.create({ id: 1, selected: false }));
|
||||
},
|
||||
|
||||
test(assert) {
|
||||
assert.ok(this.$('li .fa-circle-o:eq(0)').length === 1);
|
||||
|
||||
this.set('option.selected', true);
|
||||
|
||||
assert.ok(this.$('li .fa-dot-circle-o:eq(0)').length === 1);
|
||||
|
||||
this.set('isMultiple', true);
|
||||
|
||||
assert.ok(this.$('li .fa-check-square-o:eq(0)').length === 1);
|
||||
|
||||
this.set('option.selected', false);
|
||||
|
||||
assert.ok(this.$('li .fa-square-o:eq(0)').length === 1);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user