Skip to content

Instantly share code, notes, and snippets.

@sergtimosh
Created April 26, 2020 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergtimosh/eda2bea1de1fc99afb885f7f5862bb52 to your computer and use it in GitHub Desktop.
Save sergtimosh/eda2bea1de1fc99afb885f7f5862bb52 to your computer and use it in GitHub Desktop.
describe('Configure GMAIL', () => {
beforeEach(async () => {
await basicHelper.clearTabs()
await jestPuppeteer.resetBrowser()
await loginPage.login(ENV_CONFIG.URL, username, password)
await homePageAssert.isSelectedCompany(companyName)
})
test('Create dialog', async () => {
const testId = new Date().getTime()
const testId2 = new Date().getTime()
const from = await mailHelper.createRandomEmail(testId)
const subject = 'some subject'
//create dialog and sent to our testing mailbox
//check test in the test-mailbox via google api
const email = await mailHelper.inboxChecker(from)
console.log(email)
expect(email).not.toBeUndefined()
expect(email.subject).toBe(subject)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment