mirror of
https://github.com/fluencelabs/examples
synced 2025-06-22 22:31:32 +00:00
21 lines
683 B
TypeScript
21 lines
683 B
TypeScript
![]() |
describe('smoke test', () => {
|
||
|
it('should work', async () => {
|
||
|
console.log('going to the page in browser...');
|
||
|
await page.goto('http://localhost:3000/');
|
||
|
|
||
|
console.log('waiting for fluence to connect...');
|
||
|
await page.waitForTimeout(1000);
|
||
|
|
||
|
console.log('clicking button...');
|
||
|
await page.click('#btn');
|
||
|
|
||
|
console.log('waiting for relay time to appear...');
|
||
|
const elem = await page.waitForSelector('#relayTime');
|
||
|
|
||
|
console.log('getting the content of relay time div...');
|
||
|
const content = await elem?.evaluate((x) => x.textContent);
|
||
|
|
||
|
expect(content?.length).toBeGreaterThan(10);
|
||
|
}, 10000);
|
||
|
});
|