Skip to content

Commit e188244

Browse files
committed
Navigate to flow list page
1 parent 60b34dc commit e188244

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

test/main.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,9 @@ const puppeteer = require('puppeteer');
1111
try {
1212
const page = await browser.newPage();
1313

14-
console.log('Navigating to http://localhost:80/accounts/signup/...');
15-
await page.goto('http://localhost:80/accounts/signup/', {
16-
waitUntil: 'networkidle2',
17-
timeout: 30000
18-
});
14+
await page.goto('http://localhost/accounts/signup/', { waitUntil: 'networkidle2', timeout: 30000 });
1915

20-
console.log('Page loaded successfully!');
21-
22-
// Check if the page has the expected content
23-
const title = await page.title();
24-
console.log('Page title:', title);
16+
console.log('Signup page loaded successfully!');
2517

2618
// Check if signup form elements are present
2719
const signupForm = await page.$('form');
@@ -72,12 +64,15 @@ const puppeteer = require('puppeteer');
7264
await fillField('#id_password1', testData.password, 'Password');
7365
await fillField('#id_workspace', testData.organization, 'Workspace');
7466

75-
console.log('Submitting signup form...');
7667
await clickButton('button[type="submit"]', 'Sign Up');
7768

7869
await page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 10000 });
7970

80-
console.log('✓ Signup form test completed successfully!');
71+
console.log('Submitted signup form');
72+
73+
await page.goto('http://localhost/flow/', { waitUntil: 'networkidle2', timeout: 30000 });
74+
75+
console.log('Flow list page loaded successfully');
8176

8277
} catch (error) {
8378
console.error('✗ Test failed:', error.message);

0 commit comments

Comments
 (0)