Skip to content

Commit

Permalink
Merge pull request #3125 from webcompat/revert-3119-issues/3118/1
Browse files Browse the repository at this point in the history
Revert "Issue #3118 - Display maintenance page for /issues/new route"
  • Loading branch information
Mike Taylor authored Jan 3, 2020
2 parents 4252146 + 237d72c commit 40b83fa
Show file tree
Hide file tree
Showing 11 changed files with 1,234 additions and 1,333 deletions.
644 changes: 322 additions & 322 deletions tests/functional/image-uploads-non-auth.js

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions tests/functional/new-issue-non-auth.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
// "use strict";
// /* This Source Code Form is subject to the terms of the Mozilla Public
// * License, v. 2.0. If a copy of the MPL was not distributed with this
// * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// const intern = require("intern").default;
// const { assert } = intern.getPlugin("chai");
// const { registerSuite } = intern.getInterface("object");
// const FunctionalHelpers = require("./lib/helpers.js");
"use strict";
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const intern = require("intern").default;
const { assert } = intern.getPlugin("chai");
const { registerSuite } = intern.getInterface("object");
const FunctionalHelpers = require("./lib/helpers.js");

// var url = function(path) {
// return intern.config.siteRoot + path;
// };
var url = function(path) {
return intern.config.siteRoot + path;
};

// registerSuite("New Issue Page", {
// tests: {
// "new issue page loads"() {
// return FunctionalHelpers.openPage(
// this,
// url("/issues/new"),
// ".js-Navbar-link"
// )
// .findByCssSelector(".js-Navbar-link")
// .getVisibleText()
// .then(function(text) {
// assert.include(text, "Home");
// assert.notInclude(text, "Download our");
// })
// .end();
// }
// }
// });
registerSuite("New Issue Page", {
tests: {
"new issue page loads"() {
return FunctionalHelpers.openPage(
this,
url("/issues/new"),
".js-Navbar-link"
)
.findByCssSelector(".js-Navbar-link")
.getVisibleText()
.then(function(text) {
assert.include(text, "Home");
assert.notInclude(text, "Download our");
})
.end();
}
}
});
68 changes: 34 additions & 34 deletions tests/functional/reporting-auth.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
// "use strict";
// /* This Source Code Form is subject to the terms of the Mozilla Public
// * License, v. 2.0. If a copy of the MPL was not distributed with this
// * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// const intern = require("intern").default;
// const { assert } = intern.getPlugin("chai");
// const { registerSuite } = intern.getInterface("object");
// const FunctionalHelpers = require("./lib/helpers.js");
"use strict";
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const intern = require("intern").default;
const { assert } = intern.getPlugin("chai");
const { registerSuite } = intern.getInterface("object");
const FunctionalHelpers = require("./lib/helpers.js");

// var url = function(path) {
// return intern.config.siteRoot + path;
// };
var url = function(path) {
return intern.config.siteRoot + path;
};

// registerSuite("Reporting (auth)", {
// before() {
// return FunctionalHelpers.login(this);
// },
registerSuite("Reporting (auth)", {
before() {
return FunctionalHelpers.login(this);
},

// after() {
// return FunctionalHelpers.logout(this);
// },
after() {
return FunctionalHelpers.logout(this);
},

// tests: {
// "Report button shows name"() {
// return FunctionalHelpers.openPage(
// this,
// url("/issues/new"),
// ".js-Navbar-link"
// )
// .findByCssSelector("#submitgithub")
// .getVisibleText()
// .then(function(text) {
// assert.include(text, "Report as"); //Report as FooUser (logged in)
// })
// .end();
// }
// }
// });
tests: {
"Report button shows name"() {
return FunctionalHelpers.openPage(
this,
url("/issues/new"),
".js-Navbar-link"
)
.findByCssSelector("#submitgithub")
.getVisibleText()
.then(function(text) {
assert.include(text, "Report as"); //Report as FooUser (logged in)
})
.end();
}
}
});
Loading

0 comments on commit 40b83fa

Please sign in to comment.