Skip to content

Commit 40b83fa

Browse files
author
Mike Taylor
authored
Merge pull request #3125 from webcompat/revert-3119-issues/3118/1
Revert "Issue #3118 - Display maintenance page for /issues/new route"
2 parents 4252146 + 237d72c commit 40b83fa

11 files changed

+1234
-1333
lines changed

tests/functional/image-uploads-non-auth.js

+322-322
Large diffs are not rendered by default.
+29-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
// "use strict";
2-
// /* This Source Code Form is subject to the terms of the Mozilla Public
3-
// * License, v. 2.0. If a copy of the MPL was not distributed with this
4-
// * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5-
// const intern = require("intern").default;
6-
// const { assert } = intern.getPlugin("chai");
7-
// const { registerSuite } = intern.getInterface("object");
8-
// const FunctionalHelpers = require("./lib/helpers.js");
1+
"use strict";
2+
/* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this
4+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
const intern = require("intern").default;
6+
const { assert } = intern.getPlugin("chai");
7+
const { registerSuite } = intern.getInterface("object");
8+
const FunctionalHelpers = require("./lib/helpers.js");
99

10-
// var url = function(path) {
11-
// return intern.config.siteRoot + path;
12-
// };
10+
var url = function(path) {
11+
return intern.config.siteRoot + path;
12+
};
1313

14-
// registerSuite("New Issue Page", {
15-
// tests: {
16-
// "new issue page loads"() {
17-
// return FunctionalHelpers.openPage(
18-
// this,
19-
// url("/issues/new"),
20-
// ".js-Navbar-link"
21-
// )
22-
// .findByCssSelector(".js-Navbar-link")
23-
// .getVisibleText()
24-
// .then(function(text) {
25-
// assert.include(text, "Home");
26-
// assert.notInclude(text, "Download our");
27-
// })
28-
// .end();
29-
// }
30-
// }
31-
// });
14+
registerSuite("New Issue Page", {
15+
tests: {
16+
"new issue page loads"() {
17+
return FunctionalHelpers.openPage(
18+
this,
19+
url("/issues/new"),
20+
".js-Navbar-link"
21+
)
22+
.findByCssSelector(".js-Navbar-link")
23+
.getVisibleText()
24+
.then(function(text) {
25+
assert.include(text, "Home");
26+
assert.notInclude(text, "Download our");
27+
})
28+
.end();
29+
}
30+
}
31+
});

tests/functional/reporting-auth.js

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
// "use strict";
2-
// /* This Source Code Form is subject to the terms of the Mozilla Public
3-
// * License, v. 2.0. If a copy of the MPL was not distributed with this
4-
// * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5-
// const intern = require("intern").default;
6-
// const { assert } = intern.getPlugin("chai");
7-
// const { registerSuite } = intern.getInterface("object");
8-
// const FunctionalHelpers = require("./lib/helpers.js");
1+
"use strict";
2+
/* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this
4+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
const intern = require("intern").default;
6+
const { assert } = intern.getPlugin("chai");
7+
const { registerSuite } = intern.getInterface("object");
8+
const FunctionalHelpers = require("./lib/helpers.js");
99

10-
// var url = function(path) {
11-
// return intern.config.siteRoot + path;
12-
// };
10+
var url = function(path) {
11+
return intern.config.siteRoot + path;
12+
};
1313

14-
// registerSuite("Reporting (auth)", {
15-
// before() {
16-
// return FunctionalHelpers.login(this);
17-
// },
14+
registerSuite("Reporting (auth)", {
15+
before() {
16+
return FunctionalHelpers.login(this);
17+
},
1818

19-
// after() {
20-
// return FunctionalHelpers.logout(this);
21-
// },
19+
after() {
20+
return FunctionalHelpers.logout(this);
21+
},
2222

23-
// tests: {
24-
// "Report button shows name"() {
25-
// return FunctionalHelpers.openPage(
26-
// this,
27-
// url("/issues/new"),
28-
// ".js-Navbar-link"
29-
// )
30-
// .findByCssSelector("#submitgithub")
31-
// .getVisibleText()
32-
// .then(function(text) {
33-
// assert.include(text, "Report as"); //Report as FooUser (logged in)
34-
// })
35-
// .end();
36-
// }
37-
// }
38-
// });
23+
tests: {
24+
"Report button shows name"() {
25+
return FunctionalHelpers.openPage(
26+
this,
27+
url("/issues/new"),
28+
".js-Navbar-link"
29+
)
30+
.findByCssSelector("#submitgithub")
31+
.getVisibleText()
32+
.then(function(text) {
33+
assert.include(text, "Report as"); //Report as FooUser (logged in)
34+
})
35+
.end();
36+
}
37+
}
38+
});

0 commit comments

Comments
 (0)