-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestWithPageObject.cy.js
39 lines (28 loc) · 1.3 KB
/
TestWithPageObject.cy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { navigateTo } from "../support/page-objects/navigationPage"
import { onFomrLayoutPage } from "../support/page-objects/formsLayoutPage"
import { selectDatePicker } from "../support/page-objects/datePickerPage"
import { toSmartTable } from "../support/page-objects/smartTablePage"
describe('Test with Page Objecs', () => {
beforeEach('open application', () => {
cy.openHomePage()
})
it('verify navigation', () => {
navigateTo.formLayoutPages()
navigateTo.datePickerPage()
navigateTo.modalPages()
navigateTo.tablePages()
navigateTo.tooltipPages()
})
it('should submit inline and basid and select tommorow date in calandar',()=>{
navigateTo.formLayoutPages()
onFomrLayoutPage.submitInlineformAndEmail('Emad Bay','[email protected]')
onFomrLayoutPage.submitBasicformAndEmail('[email protected]','test123456@test')
navigateTo.datePickerPage()
selectDatePicker.selectcommonDatePickerFromToday(1)
selectDatePicker.selectDatePickerWithRangeFromToday(1,7)
navigateTo.tablePages()
toSmartTable.addNewRecordWithFirstAndLastName('Emad','Deym')
toSmartTable.updateAgeByFirstName('Emad','32')
toSmartTable.deletRowByIndex(1)
})
})