Skip to content

Commit

Permalink
Test next step
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Jul 18, 2024
1 parent 0964c9e commit ffc09c4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/needsSetup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Browser } from 'puppeteer';
import { expect } from 'vitest';

import { findTextBySelector } from './helpers';

// import { findTextBySelector } from './helpers';

export default async function needsSetupTest(browser: Browser) {
Expand All @@ -9,12 +11,12 @@ export default async function needsSetupTest(browser: Browser) {

console.log(await page.content());

expect(page).toBeTruthy();
const findTextOnPage = findTextBySelector(page);

// const findTextOnPage = findTextBySelector(page);
const signUpButton = await findTextOnPage('Sign Up');
expect(signUpButton).toBeTruthy();

// const signUpButton = await findTextOnPage('Sign Up');
// expect(signUpButton).toBeTruthy();
expect(page).toBeTruthy();

// await signUpButton.click();

Expand Down

0 comments on commit ffc09c4

Please sign in to comment.