How to use the @flood/element.Key.ENTER function in @flood/element

To help you get started, we’ve selected a few @flood/element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flood-io / element / examples / jira / jira-element.ts View on Github external
)
		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')
github flood-io / element / examples / jira / jira-element.ts View on Github external
//#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')
	})