Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
await btnCreate.click()
let pageTextVerify = By.visibleText('Create issue')
await browser.wait(Until.elementIsVisible(pageTextVerify))
await browser.takeScreenshot()
//#issuetype-field = BUG
let selIssueType = await browser.findElement(
By.xpath("//input[contains(@id, 'issuetype-field')]"),
)
await selIssueType.focus()
await browser.type(By.css('#issuetype-field'), 'Bug')
await browser.press(Key.ENTER)
//#summary
await browser.type(By.css('#summary'), 'There is a bug in the application')
//#description
await browser.type(
By.css('#description'),
'There is a bug in the application and this is the description',
)
//#priority-field
await browser.type(By.css('#priority-field'), 'Low')
await browser.press(Key.ENTER)
//#labels-textarea
await browser.type(By.css('#labels-textarea'), 'bug-report')
//#summary
await browser.type(By.css('#summary'), 'There is a bug in the application')
//#description
await browser.type(
By.css('#description'),
'There is a bug in the application and this is the description',
)
//#priority-field
await browser.type(By.css('#priority-field'), 'Low')
await browser.press(Key.ENTER)
//#labels-textarea
await browser.type(By.css('#labels-textarea'), 'bug-report')
await browser.press(Key.ENTER)
await browser.type(By.css('#labels-textarea'), 'defect')
await browser.press(Key.ENTER)
//#environment
await browser.type(By.css('#environment'), 'Production')
})