mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
select-kit refactoring
* better test helper * more reliable tests * more consistent use of data-value/data-name/title/aria-label everywhere: header and rows
This commit is contained in:
@ -22,13 +22,13 @@ componentTest('the header has a localized title', {
|
||||
|
||||
test(assert) {
|
||||
andThen(() => {
|
||||
assert.equal(selectKit().header.name(), "Normal", "it has the correct title");
|
||||
assert.equal(selectKit().header().name(), "Normal", "it has the correct title");
|
||||
});
|
||||
|
||||
this.set("topic", buildTopic(2));
|
||||
|
||||
andThen(() => {
|
||||
assert.equal(selectKit().header.name(), "Tracking", "it correctly changes the title");
|
||||
assert.equal(selectKit().header().name(), "Tracking", "it correctly changes the title");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user