-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (45 loc) · 1.95 KB
/
main.yml
File metadata and controls
69 lines (45 loc) · 1.95 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
describe('timba sign up page', () => {
it('sign up using premium', () => {
cy.visit('https://qa.timbaapps.com/')
cy.get('.chakra-input').type('lizzygal78@gmail.com') //entering work email
cy.get('form > .chakra-stack > .chakra-button').click() //verifying the sign up for free is clickable
//verify the get started button under premium is visbile and clickable
cy.get(':nth-child(3) > .chakra-button') //button is visible
.click() //clickable
//verify all input fields are visible and clickable
//Verify First Name field
cy.get('[id="field-:r0:"]').click()
.type('Elizabeth') //clickable
//verify Last Name field
//cy.get('[id="field-:r1:"]', { timeout: 10000 }) // waits up to 10 seconds
//.click()
//.type('Adesanya')
//Company Name input field
cy.get('[id="field-:r2:"]').click()
.type('thestandardpeakcaters')
//Email input field
//cy.get('[id="field-:r3:"]').click().type('thestandardpeakcaters')
//Phone Number field
cy.get('[id="field-:r4:"]').click().type('09155669681')
//Select the Country (Dropdown)
cy.get('[id="field-:r5:"]').select('Algeria')
.should('have.value','Algeria')
//Address input field
cy.get('[id="field-:r6:"]').click()
.type('No 5, Ajinowo, Magboro')
//Choose a subscription cycle
cy.get('.css-9tjmdg').click()
//Select the number of users
cy.get('.css-1chmejh > :nth-child(1) > .chakra-stack > :nth-child(3)')
.click() //to incraese the number
cy.get('.css-1chmejh > :nth-child(1) > .chakra-stack > :nth-child(1)').click() //to reduce the number
//Clicking on the Proceed button
cy.get('.css-prqpkh > .chakra-button').click()
//Verify the "Cancel" Button
//cy.get('.css-12x90wi').click()
//Verify the "Proceed to checkout" Button
cy.get('.css-17maohs').click()
//Verify the "Make Payment" Button
cy.get('.css-mnqf94 > .chakra-button', {timeout: 80000}).click()
})
})