mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Publication
This commit is contained in:
+24
-2
@@ -8,19 +8,41 @@ describe('Puppeteer tests', () => {
|
||||
// await page.goto(process.env.PUPPETEER_HOST)
|
||||
})
|
||||
|
||||
test('Login', async()=> {
|
||||
await loginTest(page)
|
||||
},30000)
|
||||
|
||||
test('[table] Open create event component', async () => {
|
||||
|
||||
await page.setViewport({width: 1200, height: 720});
|
||||
await page.goto(process.env.PUPPETEER_HOST); // wait until page load
|
||||
await page.waitForSelector('ion-app')
|
||||
|
||||
await loginTest(page)
|
||||
// wait for footer button
|
||||
await page.click('ion-tab-bar ion-tab-button:nth-child(2)')
|
||||
await page.waitForSelector('app-agenda')
|
||||
|
||||
// click add event
|
||||
await page.click('ion-content ion-row .cy-add-event')
|
||||
// wait for component
|
||||
await page.waitForSelector('app-new-event')
|
||||
|
||||
expect(3 + 2).toBe(5);
|
||||
},30000);
|
||||
|
||||
|
||||
test('[table] Create Event', async () => {
|
||||
|
||||
await page.setViewport({width: 1200, height: 720});
|
||||
await page.goto(process.env.PUPPETEER_HOST); // wait until page load
|
||||
await page.waitForSelector('ion-app')
|
||||
|
||||
// wait for footer button
|
||||
await page.click('ion-tab-bar ion-tab-button:nth-child(2)')
|
||||
await page.waitForSelector('app-agenda')
|
||||
// click add event
|
||||
await page.click('ion-content ion-row .cy-add-event')
|
||||
//
|
||||
// wait for component
|
||||
await page.waitForSelector('app-new-event')
|
||||
|
||||
expect(3 + 2).toBe(5);
|
||||
|
||||
Reference in New Issue
Block a user