Last active
October 25, 2017 22:11
-
-
Save citizenrich/960e4f46e22a2795fcd0825328b3e121 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
const puppeteer = require('puppeteer'); | |
(async () => { | |
// const browser = await puppeteer.launch(); | |
const browser = await puppeteer.launch({headless: false, slowMo: 50}); // default is true, slow down by 50ms | |
const page = await browser.newPage(); | |
// await page.goto('http://demo.ihris.org/iHRIS/Manage/login'); | |
await page.goto('http://localhost/manage-demo/login'); | |
await page.type('input[name=username]', 'i2ce_admin'); | |
await page.type('input[name=password]', 'manage'); | |
await page.click('input[name="submit"]'); | |
await page.goto('http://localhost/manage-demo/manage'); | |
await page.goto('http://localhost/manage-demo/CustomReports/edit/reports') | |
// fails - perhaps no open positions in the demo data? | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/open_position_list') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/open_position_list') | |
// succeeds | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/position_list') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/position_list') | |
// succeeds | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/facility_list') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/facility_list') | |
// succeeds | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/search_people') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/search_people') | |
// works but what report view is generated from staff_list? staff_directory works | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/staff_list') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/staff_directory') | |
// fails | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/csd_facility_list') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/csd_facility_list') | |
// fails - no cache data for the request, may not be an issue | |
await page.goto('http://localhost/manage-demo/CustomReports/generate/csd_organization_list') | |
await page.goto('http://localhost/manage-demo/CustomReports/show/csd_organization_list') | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment