-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { LoginPage } from '@support/pages/login.page' | ||
import { LoginInfo } from '..' | ||
import { InventoryData } from '../../../src/utils/InventoryData' | ||
|
||
describe('Product', { viewportHeight: 1600 }, () => { | ||
const user: LoginInfo = Cypress.env('users').standard | ||
// we can even check if the user object is valid | ||
if (!user) { | ||
throw new Error('Missing the standard user') | ||
} | ||
|
||
// before each test, quickly login the user | ||
// or restore the previous user session | ||
beforeEach(() => { | ||
LoginPage.login(user.username, user.password) | ||
}) | ||
|
||
it('shows breadcrumbs', () => { | ||
// pick a random item from the inventory data list | ||
// | ||
// and visit the item's page at "/inventory-item.html?id=..." | ||
// confirm the browser remains on the item's page | ||
// confirm the breadcrumbs are there showing the item's name | ||
cy.log('**go to inventory using breadcrumbs link**') | ||
// click on the breadcrumbs inventory link | ||
// and confirm the browser navigates to the inventory | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
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