Skip to content
Snippets Groups Projects
Commit 221d2b4e authored by Jure's avatar Jure
Browse files

test: small tweaks

parent ee322e9f
No related branches found
No related tags found
No related merge requests found
const login = (username, password = 'password') => {
cy.get('input[name="username"]').type(username)
cy.get('input[name="password"]').type(password)
cy.get('input[name="username"]')
.click()
.type(username)
cy.get('input[name="password"]')
.click()
.type(password)
cy.get('button[type="submit"]').click()
}
......@@ -16,14 +20,14 @@ const doReview = (username, note, confidential, recommendation) => {
.focus()
.type(note)
.blur()
cy.wait(1000)
cy.wait(500)
cy.get(
'[placeholder*="Enter a confidential note"] div[contenteditable="true"]',
)
.focus()
.type(confidential)
.blur()
cy.wait(1000)
cy.wait(500)
// 0 == accept, 1 == revise, 2 == reject
cy.get(`[class*=Radio__Label]:nth(${recommendation})`).click()
cy.get('button[type=submit]').click()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment