Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@ on: pull_request

jobs:
build:

runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 12.x
- name: Install
run: npm ci
- name: E2E
run: npm run se2e
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 12.x
- name: Install
run: npm ci
- name: E2E
uses: GabrielBB/xvfb-action@v1.0
with:
run: npm run se2e
- name: Email results
uses: wadeww/send-email-action@master
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: E2E results
body: E2E tests against ${{github.ref}} Status ${{job.status}}
to: wade.w.wilkey@gmail.com
from: meeee
13 changes: 13 additions & 0 deletions se2e/test.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,20 @@ describe("hi", () => {
startTimeout: 20000,
chromeDriverLogPath: "../chromedriverlog.txt"
});

await app.start();
await app.client.waitUntilWindowLoaded();

await new Promise((resolve) => setTimeout(resolve, 30000));

const bounds = await app.browserWindow.getBounds();

console.log('Window Size:', bounds.width, bounds.height);
app.browserWindow.maximize();

const maxBounds = await app.browserWindow.getBounds();
console.log('Max Window Size:', maxBounds.width, maxBounds.height);

});

after(() => {
Expand All @@ -41,6 +53,7 @@ describe("hi", () => {
it("Should launch the application and open a window", async () => {
const count = await app.client.getWindowCount();
expect(count).to.equal(1);
console.log('hi');
});

it("should find new component span", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
</g>
</svg>

<span>{{ title }} app is running!</span>
<span>{{ title }} app is running yeah!</span>

<svg
id="rocket-smoke"
Expand Down