Skip to content

Instantly share code, notes, and snippets.

npm list -g
/usr/local/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
@sergtimosh
sergtimosh / project_packages
Created November 10, 2021 18:32
project_packages
npm list
[email protected] /Users/serhiytymoshenko/work/proj/android_studio_projects/priority_mobile
├── @babel/[email protected]
├── @babel/[email protected]
├── @prioritysoftware/[email protected]
├── @react-native-community/[email protected]
├── @react-native-community/[email protected]
├── @react-native-community/[email protected]
├── @react-native-community/[email protected]
├── @react-native-community/[email protected]
//Assertions
async isElementVisible(css, timeout = 50) {
let visibility = true
await page
.waitForSelector(css, { visible: true, timeout: timeout })
.catch(() => {
visibility = false;
})
return visibility
},
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 () => {
@sergtimosh
sergtimosh / orderConfirmation.js
Last active April 26, 2020 11:45
#test scenario
describe('Order Confirmation', () => {
test('Send Email Order Confirmation', async () => {
const testId = new Date().getTime()
const message = `Test Email Message ${randNum}: ${faker.random.words(20)}`
const subject = `Test Email Message Subject ${randNum}: ${faker.random.words(3)}`
//Create Order and send mail steps...
//verify mailBox for new mail within some period of time
let emails = await mailHelper.messageChecker()
@sergtimosh
sergtimosh / MailHelper.js
Last active April 26, 2020 12:06
#helper file
import { check_inbox, get_messages } from "gmail-tester"
import { resolve } from "path"
export const mailHelper = {
async inboxChecker(from) {
const email = await check_inbox(
resolve("support/gmail-tester-data/credentials.json"),
resolve("support/gmail-tester-data/gmail_token.json"),
{
@sergtimosh
sergtimosh / Jenkinslog
Created August 14, 2018 11:38
Log from Jenkins Build process for sandbox
Started by user serhiy tymoshenko
Building in workspace /Users/timtom/.jenkins/workspace/sandbox
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/sergtimosh/JavaForQA # timeout=10
Fetching upstream changes from https://github.com/sergtimosh/JavaForQA
> git --version # timeout=10
> git fetch --tags --progress https://github.com/sergtimosh/JavaForQA +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10