Skip to content

chore: initial draft of ci script with guardiantui/test examples#27

Draft
ivelin wants to merge 6 commits intomainfrom
ci-test-example
Draft

chore: initial draft of ci script with guardiantui/test examples#27
ivelin wants to merge 6 commits intomainfrom
ci-test-example

Conversation

@ivelin
Copy link
Contributor

@ivelin ivelin commented May 30, 2023

Description

Adds CI script and related files to bootstrap and run test examples

Signed-off-by: ivelin <ivelin.eth@gmail.com>
@github-actions
Copy link

github-actions bot commented May 30, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@ivelin
Copy link
Contributor Author

ivelin commented May 30, 2023

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request May 30, 2023
ivelin added 2 commits May 30, 2023 18:20
Signed-off-by: ivelin <ivelin.eth@gmail.com>
Signed-off-by: ivelin <ivelin.eth@gmail.com>
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './test-examples',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add testMatch: [/.*gui\.(js|ts|mjs)/], below this to see gui tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. That helped. The next issue seems to do with packaging the npm:

gitpod /workspace/GuardianTest (ci-test-example) $ npx playwright test test-examples/bond-example-simple.gui.ts 

Error: Cannot find module '/workspace/GuardianTest/dist/index.js'

   at bond-example-simple.gui.ts:1

> 1 | import { test } from "@guardianui/test";
    | ^
  2 |
  3 | test.describe("Bond Protocol", () => {
  4 |     test("Should create Fixed Term market", async ({ page, gui }) => {

    at Object.<anonymous> (/workspace/GuardianTest/test-examples/bond-example-simple.gui.ts:1:1)

Error: No tests found

ivelin added 3 commits May 31, 2023 14:31
Signed-off-by: ivelin <ivelin.eth@gmail.com>
Signed-off-by: ivelin <ivelin.eth@gmail.com>
Signed-off-by: ivelin <ivelin.eth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants