Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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