async postContent() { await PostPreviewComponent.switchToIFrame( this.driver ); this.viewPostPage = await ViewPostPage.Expect( this.driver ); return await this.viewPostPage.postContent(); }
export function unregister() { if ('serviceWorker' in navigator) { navigator.serviceWorker.ready .then(registration => { registration.unregister(); }) .catch(error => { console.error(error.message); }); } }
export function unregister() { if ('serviceWorker' in navigator) { navigator.serviceWorker.ready.then(registration => { registration.unregister(); }); } }
async testConnection() { return ( await this.getConnectionFromPool() ).execute('SELECT 1 FROM DUAL'); }
/** * {{> scrollIntoView }} * * Supported only for web testing */ async scrollIntoView(locator, scrollIntoViewOptions) { if (this.isWeb) return super.scrollIntoView(locator, scrollIntoViewOptions); }
/** Delete Job */ function sampleDeleteJob(projectId, tenantId, jobId) { const client = new talent.JobServiceClient(); // const projectId = 'Your Google Cloud Project ID'; // const tenantId = 'Your Tenant ID (using tenancy is optional)'; // const jobId = 'Company ID'; const formattedName = client.jobPath(projectId, tenantId, jobId); client.deleteJob({name: formattedName}).catch(err => { console.error(err); }); console.log(`Deleted job.`); }
componentDidMount() { if (!this.props.isAdmin) return; AuthActions.fetchUsers().then(() => { this.setState({hasFetchedUserList: true}); }); }
constructor(...serviceConfig) { super(...serviceConfig); this.isRequestPending = false; this.lastResponseTimestamp = 0; this.pendingRequests = []; this.sendDefferedMethodCall = this.sendDefferedMethodCall.bind(this); this.sendMethodCall = this.sendMethodCall.bind(this); this.methodCall = this.methodCall.bind(this); }
function runQueryTest(q, expectedResult) { return compiler.compile().then(() => { const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, q); console.log(query.buildSqlAndParams()); return dbRunner.testQuery(query.buildSqlAndParams()).then(res => { console.log(JSON.stringify(res)); res.should.be.deepEqual( expectedResult ); }); }); }
/** * {{> seeInField }} * */ async seeInField(field, value) { if (this.isWeb) return super.seeInField(field, value); return super.seeInField(parseLocator.call(this, field), value); }
export function unregister() { if ('serviceWorker' in navigator) { navigator.serviceWorker.ready.then(registration => { registration.unregister(); }); } }
export function unregister() { if ('serviceWorker' in navigator) { navigator.serviceWorker.ready.then(registration => { registration.unregister(); }); } }