Skip to content

Instantly share code, notes, and snippets.

npm list -g
/usr/local/lib
├── appium@1.22.0
├── detox-cli@18.0.0
├── eslint-plugin-jest@24.1.3
├── eslint@7.17.0
├── install@0.13.0
├── npm@8.1.0
├── pnpm@6.19.0
├── react-devtools@4.10.0
@sergtimosh
sergtimosh / project_packages
Created November 10, 2021 18:32
project_packages
npm list
priority-master-react@0.0.1 /Users/serhiytymoshenko/work/proj/android_studio_projects/priority_mobile
├── @babel/core@7.11.6
├── @babel/runtime@7.11.2
├── @prioritysoftware/priority-utils@1.12.1
├── @react-native-community/async-storage@1.8.1
├── @react-native-community/datetimepicker@3.0.9
├── @react-native-community/eslint-config@1.1.0
├── @react-native-community/masked-view@0.1.10
├── @react-native-community/netinfo@5.6.2
//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