DEV: Migrate to Ember CLI (#11932)

This encompasses a lot of work done over the last year, much of which
has already been merged into master. This is the final set of changes
required to get Ember CLI running locally for development.

From here on it will be bug fixes / enhancements.

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Co-authored-by: romanrizzi <rizziromanalejandro@gmail.com>

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Co-authored-by: romanrizzi <rizziromanalejandro@gmail.com>
This commit is contained in:
Robin Ward
2021-02-03 14:22:20 -05:00
committed by GitHub
parent 8ad5284cf7
commit 61f5d501cb
25 changed files with 23103 additions and 1247 deletions

View File

@@ -66,7 +66,7 @@ acceptance("Poll breakdown", function (needs) {
"shows the breakdown button when poll_groupable_user_fields is non-empty"
);
await click(".poll-show-breakdown:first");
await click(".poll-show-breakdown");
assert.equal(
queryAll(".poll-breakdown-total-votes")[0].textContent.trim(),
@@ -88,10 +88,10 @@ acceptance("Poll breakdown", function (needs) {
test("Changing the display mode from percentage to count", async function (assert) {
await visit("/t/-/topic_with_pie_chart_poll");
await click(".poll-show-breakdown:first");
await click(".poll-show-breakdown");
assert.equal(
queryAll(".poll-breakdown-option-count:first")[0].textContent.trim(),
queryAll(".poll-breakdown-option-count")[0].textContent.trim(),
"40.0%",
"displays the correct vote percentage"
);
@@ -99,7 +99,7 @@ acceptance("Poll breakdown", function (needs) {
await click(".modal-tabs .count");
assert.equal(
queryAll(".poll-breakdown-option-count:first")[0].textContent.trim(),
queryAll(".poll-breakdown-option-count")[0].textContent.trim(),
"2",
"displays the correct vote count"
);

View File

@@ -68,15 +68,15 @@ acceptance("Rendering polls with bar charts - desktop", function (needs) {
await click("button.toggle-results");
assert.equal(
queryAll(".poll-voters:first li").length,
queryAll(".poll-voters:nth-of-type(1) li").length,
25,
"it should display the right number of voters"
);
await click(".poll-voters-toggle-expand:first a");
await click(".poll-voters-toggle-expand:nth-of-type(1) a");
assert.equal(
queryAll(".poll-voters:first li").length,
queryAll(".poll-voters:nth-of-type(1) li").length,
26,
"it should display the right number of voters"
);
@@ -91,20 +91,20 @@ acceptance("Rendering polls with bar charts - desktop", function (needs) {
await click("button.toggle-results");
assert.equal(
queryAll(".poll-voters:first li").length,
queryAll(".poll-voters:nth-of-type(1) li").length,
25,
"it should display the right number of voters"
);
assert.notOk(
queryAll(".poll-voters:first li:first a").attr("href"),
queryAll(".poll-voters:nth-of-type(1) li:nth-of-type(1) a").attr("href"),
"user URL does not exist"
);
await click(".poll-voters-toggle-expand:first a");
await click(".poll-voters-toggle-expand:nth-of-type(1) a");
assert.equal(
queryAll(".poll-voters:first li").length,
queryAll(".poll-voters:nth-of-type(1) li").length,
30,
"it should display the right number of voters"
);

View File

@@ -30,20 +30,20 @@ acceptance("Rendering polls with bar charts - mobile", function (needs) {
await click("button.toggle-results");
assert.equal(
queryAll(".poll-voters:first li").length,
queryAll(".poll-voters:nth-of-type(1) li").length,
25,
"it should display the right number of voters"
);
assert.notOk(
queryAll(".poll-voters:first li:first a").attr("href"),
queryAll(".poll-voters:nth-of-type(1) li:nth-of-type(1) a").attr("href"),
"user URL does not exist"
);
await click(".poll-voters-toggle-expand:first a");
await click(".poll-voters-toggle-expand:nth-of-type(1) a");
assert.equal(
queryAll(".poll-voters:first li").length,
queryAll(".poll-voters:nth-of-type(1) li").length,
35,
"it should display the right number of voters"
);