Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/models/private/-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ export default class CommonModel extends Model {
@attr changes;

get features() {
return (this.changes || []).filterBy('feature');
return (this.changes || []).filter((change) => Boolean(change?.feature));
}

get deprecations() {
return (this.changes || []).filterBy('deprecation');
return (this.changes || []).filter((change) =>
Boolean(change?.deprecation),
);
}
}
21 changes: 21 additions & 0 deletions app/styles/app.css
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */

/*
This project is using an old version of the styleguide, so these highly-targeted rules are a bridge
to meet accessibility guidelines until we upgrade to a compliant styleguide.
*/

footer.es-footer {
.footer-help {
p {
a {
text-decoration: underline;
}
}
}
}

main > section.container > form {
button.es-button {
background-color: #db3122;
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\""
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
"test:ember": "ember test"
},
"devDependencies": {
"@babel/core": "^7.24.7",
Expand Down
35 changes: 23 additions & 12 deletions tests/acceptance/changes-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ import { click, currentURL, findAll, visit } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import { a11yAudit } from 'ember-a11y-testing/test-support';

// When a new version is added, update these numbers
const LATEST_DELTAS = {
version: '7.0',
emberNewFeatures: 50,
emberDeprecations: 36,
emberDataNewFeatures: 21,
emberDataDeprecations: 18,
emberCLINewFeatures: 96,
emberCLIDeprecations: 14,
};

module('Acceptance | changes', function (hooks) {
setupApplicationTest(hooks);

Expand All @@ -16,8 +27,8 @@ module('Acceptance | changes', function (hooks) {

assert.strictEqual(
newFeaturesInEmberJS.length,
43,
'We see 43 new features that occurred in Ember.js since version 3.15',
LATEST_DELTAS.emberNewFeatures,
`We see ${LATEST_DELTAS.emberNewFeatures} new features that occurred in Ember.js since version 3.15`,
);

// Check deprecations in Ember.js
Expand All @@ -27,8 +38,8 @@ module('Acceptance | changes', function (hooks) {

assert.strictEqual(
deprecationsInEmberJS.length,
33,
'We see 33 deprecations that occurred in Ember.js since version 3.15',
LATEST_DELTAS.emberDeprecations,
`We see ${LATEST_DELTAS.emberDeprecations} deprecations that occurred in Ember.js since version 3.15`,
);

// Check new features in Ember Data
Expand All @@ -38,8 +49,8 @@ module('Acceptance | changes', function (hooks) {

assert.strictEqual(
newFeaturesInEmberData.length,
21,
'We see 21 new feature that occurred in Ember Data since version 3.15',
LATEST_DELTAS.emberDataNewFeatures,
`We see ${LATEST_DELTAS.emberDataNewFeatures} new feature that occurred in Ember Data since version 3.15`,
);

// Check deprecations in Ember Data
Expand All @@ -49,8 +60,8 @@ module('Acceptance | changes', function (hooks) {

assert.strictEqual(
deprecationsInEmberData.length,
18,
'We see 18 deprecations that occurred in Ember Data since version 3.15',
LATEST_DELTAS.emberDataDeprecations,
`We see ${LATEST_DELTAS.emberDataDeprecations} deprecations that occurred in Ember Data since version 3.15`,
);

// Check new features in Ember CLI
Expand All @@ -60,8 +71,8 @@ module('Acceptance | changes', function (hooks) {

assert.strictEqual(
newFeaturesInEmberCLI.length,
74,
'We see 74 new features that occurred in Ember CLI since version 3.15',
LATEST_DELTAS.emberCLINewFeatures,
`We see ${LATEST_DELTAS.emberCLINewFeatures} new features that occurred in Ember CLI since version 3.15`,
);

// Check deprecations in Ember CLI
Expand All @@ -71,8 +82,8 @@ module('Acceptance | changes', function (hooks) {

assert.strictEqual(
deprecationsInEmberCLI.length,
10,
'We see 10 deprecations that occurred in Ember CLI since version 3.15',
LATEST_DELTAS.emberCLIDeprecations,
`We see ${LATEST_DELTAS.emberCLIDeprecations} deprecations that occurred in Ember CLI since version 3.15`,
);
});

Expand Down
Loading