Files
puppeteer-scraper/scraper.test.js
Frank Delaguila 001e362d38 what is going on
2022-10-04 20:46:30 -06:00

12 lines
443 B
JavaScript

require('expect-puppeteer');
describe( 'Google', () => {
beforeAll( async () => {
await page.goto('https://www.sports-reference.com/cfb/schools/utah/2022-schedule.html', { waitUntil: 'domcontentloaded' });
} );
it( 'should open a new page, and match title.', async () => {
const title = await page.title();
expect(title).toMatch("2022 Utah Utes Schedule and Results | College Football at Sports-Reference.com");
} );
} );