Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"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");
const path = require("path");
var cwd = intern.config.basePath;
var VALID_IMAGE_PATH = path.join(cwd, "tests/fixtures", "green_square.png");
// DETAILS_STRING is a URL encoded object, stringified to JSON.
var DETAILS_STRING =
'{"gfx.webrender.all"%3Afalse%2C"gfx.webrender.blob-images"%3A2%2C"gfx.webrender.enabled"%3Afalse%2C"image.mem.shared"%3A2%2C"layout.css.servo.enabled"%3Atrue}';
var url = function(path) {
return intern.config.siteRoot + path;
};
registerSuite("Reporting (non-auth)", {
tests: {
"Submit buttons are disabled"() {
return FunctionalHelpers.openPage(
this,
url("/issues/new"),
".js-report-buttons"
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path, params) {
var fullUrl =
params !== undefined
? intern.config.siteRoot + path + params
: intern.config.siteRoot + path;
return fullUrl;
};
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path) {
return intern.config.siteRoot + path;
};
var url = function(path) {
return intern.config.siteRoot + path;
};