Created
April 26, 2020 12:06
-
-
Save sergtimosh/eda2bea1de1fc99afb885f7f5862bb52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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