Rename "Integration" tests to "Acceptance" tests.
The term "Acceptance" seems to have won out everywhere and I don't want our codebase to be confusing.
This commit is contained in:
parent
da9e2792eb
commit
7aa68eaeab
|
@ -14,7 +14,6 @@
|
||||||
"moduleForComponent",
|
"moduleForComponent",
|
||||||
"Pretender",
|
"Pretender",
|
||||||
"sandbox",
|
"sandbox",
|
||||||
"integration",
|
|
||||||
"controllerFor",
|
"controllerFor",
|
||||||
"test",
|
"test",
|
||||||
"ok",
|
"ok",
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import siteFixtures from 'fixtures/site_fixtures';
|
import siteFixtures from 'fixtures/site_fixtures';
|
||||||
|
|
||||||
function integration(name, options) {
|
function acceptance(name, options) {
|
||||||
module("Integration: " + name, {
|
module("Acceptance: " + name, {
|
||||||
setup: function() {
|
setup: function() {
|
||||||
Ember.run(Discourse, Discourse.advanceReadiness);
|
Ember.run(Discourse, Discourse.advanceReadiness);
|
||||||
|
|
||||||
|
@ -61,4 +61,4 @@ function fixture(selector) {
|
||||||
return $("#qunit-fixture");
|
return $("#qunit-fixture");
|
||||||
}
|
}
|
||||||
|
|
||||||
export { integration, controllerFor, asyncTestDiscourse, fixture };
|
export { acceptance, controllerFor, asyncTestDiscourse, fixture };
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("About");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("About");
|
||||||
|
|
||||||
test("viewing", () => {
|
test("viewing", () => {
|
||||||
visit("/about");
|
visit("/about");
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
integration("Badges");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
|
||||||
|
acceptance("Badges");
|
||||||
|
|
||||||
test("Visit Badge Pages", () => {
|
test("Visit Badge Pages", () => {
|
||||||
visit("/badges");
|
visit("/badges");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { integration } from "helpers/qunit-helpers";
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
|
||||||
integration("Create Account - User Fields", {
|
acceptance("Create Account - User Fields", {
|
||||||
site: {
|
site: {
|
||||||
user_fields: [{"id":34,"name":"I've read the terms of service","field_type":"confirm","required":true},
|
user_fields: [{"id":34,"name":"I've read the terms of service","field_type":"confirm","required":true},
|
||||||
{"id":35,"name":"What is your pet's name?","field_type":"text","required":true},
|
{"id":35,"name":"What is your pet's name?","field_type":"text","required":true},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Groups");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Groups");
|
||||||
|
|
||||||
test("Browsing Groups", () => {
|
test("Browsing Groups", () => {
|
||||||
visit("/groups/discourse");
|
visit("/groups/discourse");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Header (Anonymous)");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Header (Anonymous)");
|
||||||
|
|
||||||
test("header", () => {
|
test("header", () => {
|
||||||
visit("/");
|
visit("/");
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
integration("Header (Staff)", {
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
|
||||||
|
acceptance("Header (Staff)", {
|
||||||
user: { username: 'test',
|
user: { username: 'test',
|
||||||
staff: true,
|
staff: true,
|
||||||
site_flagged_posts_count: 1 }
|
site_flagged_posts_count: 1 }
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
integration("Login Required", {
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
|
||||||
|
acceptance("Login Required", {
|
||||||
settings: {
|
settings: {
|
||||||
login_required: true
|
login_required: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Modal");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Modal");
|
||||||
|
|
||||||
test("modal", () => {
|
test("modal", () => {
|
||||||
visit('/');
|
visit('/');
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Signing In");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Signing In");
|
||||||
|
|
||||||
test("sign in", () => {
|
test("sign in", () => {
|
||||||
visit("/");
|
visit("/");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Static");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Static");
|
||||||
|
|
||||||
test("Static Pages", () => {
|
test("Static Pages", () => {
|
||||||
visit("/faq");
|
visit("/faq");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Topic Discovery");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Topic Discovery");
|
||||||
|
|
||||||
test("Visit Discovery Pages", () => {
|
test("Visit Discovery Pages", () => {
|
||||||
visit("/");
|
visit("/");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("View Topic");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("View Topic");
|
||||||
|
|
||||||
test("Enter a Topic", () => {
|
test("Enter a Topic", () => {
|
||||||
visit("/t/internationalization-localization/280");
|
visit("/t/internationalization-localization/280");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("Unknown");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("Unknown");
|
||||||
|
|
||||||
test("Unknown URL", () => {
|
test("Unknown URL", () => {
|
||||||
expect(1);
|
expect(1);
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("User Card");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("User Card");
|
||||||
|
|
||||||
test("card", () => {
|
test("card", () => {
|
||||||
visit('/');
|
visit('/');
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("User");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("User");
|
||||||
|
|
||||||
function hasStream() {
|
function hasStream() {
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
integration("User Directory");
|
import { acceptance } from "helpers/qunit-helpers";
|
||||||
|
acceptance("User Directory");
|
||||||
|
|
||||||
test("Visit Page", function() {
|
test("Visit Page", function() {
|
||||||
visit("/users");
|
visit("/users");
|
||||||
|
|
Loading…
Reference in New Issue