Skip to content

Commit

Permalink
Added sauce helper back to config and PMM URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartikeya99 committed Jul 10, 2019
1 parent be7971a commit c55d447
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 6 additions & 1 deletion codecept.json
Expand Up @@ -2,10 +2,15 @@
"output": "tests/output",
"helpers": {
"WebDriver": {
"url": "https://18.224.200.209/",
"url": "{PMM_URL_HERE}",
"browser": "chrome",
"windowSize": "maximize"
},
"SauceHelper": {
"require": "codeceptjs-saucehelper",
"user": "pmm_qa",
"key": "{SAUCE_USER_KEY}"
},
"ResembleHelper" : {
"require": "codeceptjs-resemblehelper",
"screenshotFolder": "./tests/output/",
Expand Down
2 changes: 1 addition & 1 deletion tests/pages/adminPage.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
url: "graph/d/Fxvd1timk/home-dashboard?orgId=1",
fields: {
navigation: "//div[@class='navbar']//a[2]", // /html/body/grafana-app/div/div/div/react-container/div/div[1]/div[1]/div/a[2]
timePickerMenu: "/html/body/grafana-app/div/div/div/react-container/div/div[1]/div[5]/div[1]/gf-time-picker/button[1]",// //button[@ng-click='ctrl.openDropdown()
timePickerMenu: "//button[@ng-click='ctrl.openDropdown()", // /html/body/grafana-app/div/div/div/react-container/div/div[1]/div[5]/div[1]/gf-time-picker/button[1]
fromTime: "(//input[@input-datetime])[1]",
applyCustomTimer: "//button[@ng-click=\"ctrl.applyCustom();\"]",
backToDashboard: "/html/body/grafana-app/div/div/div/react-container/div/div[1]/div[1]/button" // //button[@ng-click='ctrl.close()']
Expand Down
4 changes: 2 additions & 2 deletions tests/pages/systemOverviewPage.js
Expand Up @@ -21,9 +21,9 @@ module.exports = {
for(let i=0; i<300; i++)
I.pressKey("ArrowDown")

for (var i in this.metrics) {
for (let i in this.metrics) {
I.seeElement(this.graphsLocator(this.metrics[i]));
}
I.dontSeeElement(this.fields.notAvailableMetrics);
}
}
};
1 change: 0 additions & 1 deletion tests/verifySystemOverviewDashboard_test.js
Expand Up @@ -2,7 +2,6 @@
Feature('to verify System Overview Dashboards');

Before((I, loginPage) => {
I.amOnPage('/');
I.amOnPage(loginPage.url);
loginPage.login("admin", "admin");
});
Expand Down

0 comments on commit c55d447

Please sign in to comment.