Merge CI/CD into Branch (Started Branch from wrong version of main) #3
@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test';
|
||||
import * as PATH from 'path';
|
||||
|
||||
test.describe('Check Home Page', () => {
|
||||
let app: ElectronApplication;
|
||||
/*let app: ElectronApplication;
|
||||
let firstWindow: Page;
|
||||
let context: BrowserContext;
|
||||
|
||||
@ -38,23 +38,23 @@ test.describe('Check Home Page', () => {
|
||||
expect(windowState.isVisible).toBeTruthy();
|
||||
expect(windowState.isDevToolsOpened).toBeFalsy();
|
||||
expect(windowState.isCrashed).toBeFalsy();
|
||||
});
|
||||
});*/
|
||||
|
||||
// test('Check Home Page design', async ({ browserName}) => {
|
||||
// // Uncomment if you change the design of Home Page in order to create a new screenshot
|
||||
// const screenshot = await firstWindow.screenshot({ path: '/tmp/home.png' });
|
||||
// expect(screenshot).toMatchSnapshot(`home-${browserName}.png`);
|
||||
// });
|
||||
// });*/
|
||||
|
||||
//Does not work with adapted (simplified) angular setup
|
||||
/*test('Check title', async () => {
|
||||
const elem = await firstWindow.$('app-home h1');
|
||||
const text = elem ? await elem.innerText() : null;
|
||||
expect(text).toBe('App works !');
|
||||
});*/
|
||||
});
|
||||
|
||||
test.afterAll( async () => {
|
||||
await context.tracing.stop({ path: 'e2e/tracing/trace.zip' });
|
||||
await app.close();
|
||||
});
|
||||
});*/
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user