You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
553 B
18 lines
553 B
const BASE_URL = `http://localhost:${process.env.PORT || 8000}`;
|
|
|
|
describe('Homepage', () => {
|
|
beforeAll(async () => {
|
|
jest.setTimeout(1000000);
|
|
});
|
|
it('topmenu should have footer', async () => {
|
|
const params = '/form/basic-form?navTheme=light&layout=topmenu';
|
|
await page.goto(`${BASE_URL}${params}`);
|
|
await page.waitForSelector('footer', {
|
|
timeout: 2000,
|
|
});
|
|
const haveFooter = await page.evaluate(
|
|
() => document.getElementsByTagName('footer').length > 0
|
|
);
|
|
expect(haveFooter).toBeTruthy();
|
|
});
|
|
});
|
|
|