-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into tsmith/automate-release
# Conflicts: # release-please.manifest.json
- Loading branch information
Showing
75 changed files
with
2,570 additions
and
1,982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
frontend/packages/data-portal/_templates/e2e/new/pageActor.cjs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
to: e2e/pageObjects/<%= name %>/<%= name %>Actor.ts | ||
--- | ||
/** | ||
* This file contains combinations of page interactions or data fetching. Remove if not needed. | ||
*/ | ||
import { <%= h.changeCase.pascal(name) %>Page } from 'e2e/pageObjects/<%= name %>/<%= name %>Page' | ||
|
||
export class <%= h.changeCase.pascal(name) %>Actor { | ||
private <%= name %>Page: <%= h.changeCase.pascal(name) %>Page | ||
|
||
constructor(<%= name %>Page: <%= h.changeCase.pascal(name) %>Page) { | ||
this.<%= name %>Page = <%= name %>Page | ||
} | ||
// #region Navigate | ||
// #endregion Navigate | ||
|
||
// #region Click | ||
// #endregion Click | ||
|
||
// #region Hover | ||
// #endregion Hover | ||
|
||
// #region Get | ||
// #endregion Get | ||
|
||
// #region Macro | ||
// #endregion Macro | ||
|
||
// #region Validation | ||
// #endregion Validation | ||
|
||
// #region Bool | ||
// #endregion Bool | ||
} |
1 change: 1 addition & 0 deletions
1
frontend/packages/data-portal/_templates/e2e/new/pageObject.cjs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
frontend/packages/data-portal/_templates/e2e/new/testFile.cjs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
--- | ||
to: e2e/<%= name %>.test.ts | ||
--- | ||
import { ApolloClient, NormalizedCacheObject } from '@apollo/client' | ||
import { test } from '@playwright/test' | ||
import { <%= h.changeCase.pascal(name) %>Page } from 'e2e/pageObjects/<%= name %>/<%= name %>Page' | ||
|
||
test.describe('<%= name %>', () => { | ||
test('should work', async ({ page }) => { | ||
const <%= name %>Page = new <%= h.changeCase.pascal(name) %>Page(page) | ||
let client: ApolloClient<NormalizedCacheObject> | ||
let <%= name %>Page: <%= h.changeCase.pascal(name) %>Page | ||
|
||
test.beforeEach(({page}) => { | ||
<%= name %>Page = new <%= h.changeCase.pascal(name) %>Page(page) | ||
}) | ||
|
||
test('should work', async () => { | ||
await <%= name %>Page.goTo('https://playwright.dev/') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.