mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
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",
|
||||
"Pretender",
|
||||
"sandbox",
|
||||
"integration",
|
||||
"controllerFor",
|
||||
"test",
|
||||
"ok",
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
import siteFixtures from 'fixtures/site_fixtures';
|
||||
|
||||
function integration(name, options) {
|
||||
module("Integration: " + name, {
|
||||
function acceptance(name, options) {
|
||||
module("Acceptance: " + name, {
|
||||
setup: function() {
|
||||
Ember.run(Discourse, Discourse.advanceReadiness);
|
||||
|
||||
|
@ -61,4 +61,4 @@ function fixture(selector) {
|
|||
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", () => {
|
||||
visit("/about");
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
integration("Badges");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Badges");
|
||||
|
||||
test("Visit Badge Pages", () => {
|
||||
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: {
|
||||
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},
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Groups");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Groups");
|
||||
|
||||
test("Browsing Groups", () => {
|
||||
visit("/groups/discourse");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Header (Anonymous)");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Header (Anonymous)");
|
||||
|
||||
test("header", () => {
|
||||
visit("/");
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
integration("Header (Staff)", {
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Header (Staff)", {
|
||||
user: { username: 'test',
|
||||
staff: true,
|
||||
site_flagged_posts_count: 1 }
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
integration("Login Required", {
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Login Required", {
|
||||
settings: {
|
||||
login_required: true
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Modal");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Modal");
|
||||
|
||||
test("modal", () => {
|
||||
visit('/');
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Signing In");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Signing In");
|
||||
|
||||
test("sign in", () => {
|
||||
visit("/");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Static");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Static");
|
||||
|
||||
test("Static Pages", () => {
|
||||
visit("/faq");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Topic Discovery");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Topic Discovery");
|
||||
|
||||
test("Visit Discovery Pages", () => {
|
||||
visit("/");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("View Topic");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("View Topic");
|
||||
|
||||
test("Enter a Topic", () => {
|
||||
visit("/t/internationalization-localization/280");
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("Unknown");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Unknown");
|
||||
|
||||
test("Unknown URL", () => {
|
||||
expect(1);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("User Card");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("User Card");
|
||||
|
||||
test("card", () => {
|
||||
visit('/');
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("User");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("User");
|
||||
|
||||
function hasStream() {
|
||||
andThen(() => {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
integration("User Directory");
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("User Directory");
|
||||
|
||||
test("Visit Page", function() {
|
||||
visit("/users");
|
||||
|
|
Loading…
Reference in New Issue
Block a user