mirror of
https://github.com/luxdao/ui-automation.git
synced 2026-10-30 19:53:14 +00:00
16 lines
748 B
TypeScript
16 lines
748 B
TypeScript
import { getBaseUrl, appendFlagsToUrl } from '../../test-helpers';
|
|
import { getTestDao } from '../../../config/test-daos';
|
|
import { BaseSeleniumTest } from '../../base-selenium-test';
|
|
import { By } from 'selenium-webdriver';
|
|
import { pages } from '../../../config/pages';
|
|
|
|
const test = new BaseSeleniumTest('treasury', 'content-loads');
|
|
BaseSeleniumTest.run(async (test) => {
|
|
await test.start();
|
|
const pagePath = `${pages['treasury']}?dao=${getTestDao('multisig').value}`;
|
|
await test.driver!.get(appendFlagsToUrl(getBaseUrl() + pagePath));
|
|
// Wait for the Hats Protocol v1 image to appear
|
|
await test.waitForElement(By.css('img[alt="Hats Protocol v1"]'));
|
|
console.log('Treasury page loaded and Hats Protocol v1 image found.');
|
|
}, test);
|