-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3125 from webcompat/revert-3119-issues/3118/1
Revert "Issue #3118 - Display maintenance page for /issues/new route"
- Loading branch information
Showing
11 changed files
with
1,234 additions
and
1,333 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
}); |
Oops, something went wrong.