Skip to content

Commit

Permalink
removing legacy code. The selenium session count is being tracked in …
Browse files Browse the repository at this point in the history
…the hooks script
  • Loading branch information
themarcelor committed Aug 4, 2021
1 parent a31bc50 commit fb1bf0c
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions suites/portal/homepageTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,6 @@ const fetch = require('node-fetch');
Feature('Homepage').retry(2);

Scenario('login @portal', async ({ home }) => {
let sessionCount = 0;
if (process.env.RUNNING_IN_PROD_TIER === 'true') {
console.log('INFO: Running in prod-tier environment. Ignore selenium-hub metrics.');
} else {
const resp = await fetch('http://selenium-hub:4444/status');
const respJson = await resp.json();

const { nodes } = respJson.value;
if (nodes.length > 0) {
nodes.forEach((node) => {
node.slots.forEach((slot) => {
if (slot.session) {
sessionCount += 1;
}
});
});
}
}
console.log(`*** COUNT OF SELENIUM SESSIONS: ${sessionCount} ***`);
home.do.goToHomepage();
home.complete.login();
home.ask.seeDetails();
Expand Down

0 comments on commit fb1bf0c

Please sign in to comment.