Skip to content

Commit

Permalink
[CI] [playwright] Run UI tests on the browser app
Browse files Browse the repository at this point in the history
Since we have this minimal UI test suite, let's also use it on the
browser example app.

Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Mar 19, 2024
1 parent a9c252b commit 9062748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9

- name: Test
- name: Run Unit Tests
run: yarn test
env:
CI: true

- name: Run UI tests on Browser Example App
run:
yarn start:browser &
yarn test:browser-app

code-lint:
name: Lint and check format
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions playwright-tests/tests/trace-viewer-app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ test.describe('My Trace Explorer View', () => {
test('From closed, can be re-opened using the command palette', async () => {
expect(await traceExplorer.isDisplayed()).toBe(false);
await traceExplorer.open();
await traceExplorer.activate();
expect(await traceExplorer.isDisplayed()).toBe(true);
});
test('Trace Server status is shown as not started (red)', async () => {
Expand Down

0 comments on commit 9062748

Please sign in to comment.