Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
petamoriken committed Feb 6, 2022
1 parent 6b1efe9 commit 9ea804f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const { TARGET_URL } = process.env;
module.exports = {
/** @param {import("nightwatch").NightwatchBrowser} client */
async ["Browser Test"](client) {
let elements = null;
let response = null;
let success = false;

try {
elements = await client.url(
response = await client.url(
TARGET_URL || "http://127.0.0.1:8000/power.html",
)
.waitForElementPresent("#mocha-report .suite:nth-of-type(4)", 30000)
Expand All @@ -35,7 +35,7 @@ module.exports = {
}

// show error log
for (const element of elements) {
for (const element of response.value) {
const id = element.getId();
const { value: error } = await client.elementIdText(id);
client.verify.ok(false, `\n\n${red}${error}${reset}\n\n`);
Expand Down

0 comments on commit 9ea804f

Please sign in to comment.