mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
30 lines
792 B
TypeScript
30 lines
792 B
TypeScript
|
|
import { environment } from '../src/environments/environment'
|
||
|
|
|
||
|
|
describe('Puppeteer tests', () => {
|
||
|
|
|
||
|
|
beforeAll(async () => {
|
||
|
|
// await page.goto(process.env.PUPPETEER_HOST)
|
||
|
|
})
|
||
|
|
|
||
|
|
|
||
|
|
test('[table] create event', async () => {
|
||
|
|
|
||
|
|
// const browser = await puppeteer.launch({headless: false});
|
||
|
|
await page.setViewport({width: 1200, height: 720});
|
||
|
|
await page.goto(process.env.PUPPETEER_HOST); // wait until page load
|
||
|
|
await page.waitForSelector('ion-tab-bar ion-tab-button:nth-child(3)')
|
||
|
|
await page.click('ion-tab-bar ion-tab-button:nth-child(3)')
|
||
|
|
|
||
|
|
await page.waitForSelector('ion-content ion-row .cy-add-event')
|
||
|
|
await page.waitForSelector('app-new-event')
|
||
|
|
|
||
|
|
expect(3 + 2).toBe(5);
|
||
|
|
},30000);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
});
|
||
|
|
|