Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.87 KB

example markdown report.md

File metadata and controls

70 lines (53 loc) · 1.87 KB

TOC

Smoke suite

Sanity check

EPAM carreer page should open, with a visible logo on the page.

return expect(epamLogo.isDisplayed()).to.eventually.be.true;

All the main elements should be visible on Carreer page

The "Keyword or job ID" input field should be visible.

return expect(keyWordOrIDInput.isDisplayed()).to.eventually.be.true;

The "Location" dropdown should be visible.

return expect(locationDropdown.isDisplayed()).to.eventually.be.true;

The "Skills" selector should be visible.

return expect(skillsSelector.isDisplayed()).to.eventually.be.true;

The "Find" button should be visible.

return expect(findButton.isDisplayed()).to.eventually.be.true;

Checking a search result list

When the "Test Automation engineer" keyword is typed into the search field.

return keyWordOrIDInput.sendKeys(keyWord);

And the "Find" button is clicked.

findButton.click();
driver.sleep(6000);
return driver.wait(function () {
    return driver.findElement(by.css(searchResultHeadingLocator)).isDisplayed();
});

Then the search result list heading should contain the searched searchterm.

return expect(driver.findElement(by.css(searchResultHeadingLocator)).getText()).to.eventually.include(keyWord.toUpperCase());

Homework