-
Notifications
You must be signed in to change notification settings - Fork 0
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
Rodrigo Matola
authored and
Rodrigo Matola
committed
Dec 12, 2023
1 parent
7822ed1
commit 1eeacd8
Showing
5 changed files
with
478 additions
and
11 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
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,25 @@ | ||
import { computersListPage, addNewComputerPage, editComputerPage } from "../support/pageElements/computerDatabase.elements" | ||
import { computerRandomInfo, myComputerInfo } from "../fixtures/computerInfo" | ||
import { ComputerInfo } from "../support/types/ComputerInfo" | ||
|
||
describe('Computer database', () => { | ||
beforeEach(() => { | ||
cy.step('Given I am on computers page') | ||
cy.visit('/') | ||
}) | ||
|
||
it('verifies computers page', () => { | ||
cy.get(computersListPage.computersFound).should('be.visible') | ||
cy.percySnapshot() | ||
}) | ||
|
||
it('verifies adds a new computer page', () => { | ||
cy.get(computersListPage.addNewComputerBtn).click() | ||
cy.percySnapshot() | ||
}) | ||
|
||
it('verifies delete a computer page', () => { | ||
cy.get(computersListPage.tableComputerNames).first().click() | ||
cy.percySnapshot() | ||
}) | ||
}) |
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,2 +1,3 @@ | ||
import './commands' | ||
import 'cypress-plugin-steps' | ||
import '@percy/cypress'; |
Oops, something went wrong.