-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README + added emptyCart() (#121)
* Update README.md Update "If you only need the Hyvä tests" section. * Add emptyCart() function to the cart page-object. * Fix typo in the emptyCart() method. * Add general spec to test logo and favicon. * Update cart spec, 'Cart tests', empty cart before each test. * Update luma cart spec - add selectors.
- Loading branch information
Showing
6 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea/ | ||
/node_modules | ||
/cypress/videos | ||
/cypress/screenshots | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import homepage from "../../fixtures/luma/homepage.json"; | ||
import selectors from "../../fixtures/luma/selectors/homepage"; | ||
|
||
describe(['cx'], 'General page tests', function () { | ||
beforeEach(() => { | ||
cy.visit(homepage.homePageUrl) | ||
cy.wait(2000) | ||
}) | ||
|
||
it('Check if the logo has title attribute set', function () { | ||
cy.get(selectors.logoImage).invoke('attr', 'title').should('not.be.empty'); | ||
}) | ||
|
||
it('Check if the favicon exists', function () { | ||
cy.get(selectors.favicon).should('exist'); | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters