-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'org/master' into openid
- Loading branch information
Showing
714 changed files
with
11,563 additions
and
8,365 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
name: /update-vrt | ||
on: | ||
issue_comment: | ||
types: [ created ] | ||
|
||
permissions: | ||
pull-requests: read | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.issue.number }}-${{ contains(github.event.comment.body, '/update-vrt') }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
update-vrt: | ||
name: Update VRT | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.issue.pull_request && | ||
contains(github.event.comment.body, '/update-vrt') | ||
container: | ||
image: mcr.microsoft.com/playwright:v1.41.1-jammy | ||
steps: | ||
- name: Get PR branch | ||
# Until https://github.com/xt0rted/pull-request-comment-branch/issues/322 is resolved we use the forked version | ||
uses: gotson/pull-request-comment-branch@head-repo-owner-dist | ||
id: comment-branch | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }} | ||
ref: ${{ steps.comment-branch.outputs.head_ref }} | ||
- name: Set up environment | ||
uses: ./.github/actions/setup | ||
- name: Wait for Netlify build to finish | ||
id: netlify | ||
env: | ||
COMMIT_SHA: ${{ steps.comment-branch.outputs.head_sha }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./.github/actions/netlify-wait-for-build | ||
- name: Run VRT Tests on Netlify URL | ||
run: yarn vrt --update-snapshots | ||
env: | ||
E2E_START_URL: ${{ steps.netlify.outputs.url }} | ||
- name: Create patch | ||
run: | | ||
git config --system --add safe.directory "*" | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git reset | ||
git add "**/*.png" | ||
if git diff --staged --quiet; then | ||
echo "No changes to commit" | ||
exit 0 | ||
fi | ||
git commit -m "Update VRT" | ||
git format-patch -1 HEAD --stdout > Update-VRT.patch | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: patch | ||
path: Update-VRT.patch | ||
|
||
push-patch: | ||
runs-on: ubuntu-latest | ||
needs: update-vrt | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Get PR branch | ||
# Until https://github.com/xt0rted/pull-request-comment-branch/issues/322 is resolved we use the forked version | ||
uses: gotson/pull-request-comment-branch@head-repo-owner-dist | ||
id: comment-branch | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }} | ||
ref: ${{ steps.comment-branch.outputs.head_ref }} | ||
- uses: actions/download-artifact@v4 | ||
continue-on-error: true | ||
with: | ||
name: patch | ||
- name: Apply patch and push | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git apply Update-VRT.patch | ||
git add "**/*.png" | ||
if git diff --staged --quiet; then | ||
echo "No changes to commit" | ||
exit 0 | ||
fi | ||
git commit -m "Update VRT" | ||
git push origin HEAD:${{ steps.comment-branch.outputs.head_ref }} | ||
- name: Add finished reaction | ||
uses: dkershner6/reaction-action@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commentId: ${{ github.event.comment.id }} | ||
reaction: "rocket" | ||
|
||
add-starting-reaction: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.issue.pull_request && | ||
contains(github.event.comment.body, '/update-vrt') | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: React to comment | ||
uses: dkershner6/reaction-action@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commentId: ${{ github.event.comment.id }} | ||
reaction: "+1" |
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 |
---|---|---|
|
@@ -50,3 +50,6 @@ bundle.mobile.js.map | |
|
||
# Local Netlify folder | ||
.netlify | ||
|
||
# build output | ||
package.tgz |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
import { ConfigurationPage } from './page-models/configuration-page'; | ||
import { MobileNavigation } from './page-models/mobile-navigation'; | ||
|
||
test.describe('Mobile Accounts', () => { | ||
let page; | ||
let navigation; | ||
let configurationPage; | ||
|
||
test.beforeEach(async ({ browser }) => { | ||
page = await browser.newPage(); | ||
navigation = new MobileNavigation(page); | ||
configurationPage = new ConfigurationPage(page); | ||
|
||
await page.setViewportSize({ | ||
width: 350, | ||
height: 600, | ||
}); | ||
await page.goto('/'); | ||
await configurationPage.createTestFile(); | ||
}); | ||
|
||
test.afterEach(async () => { | ||
await page.close(); | ||
}); | ||
|
||
test('opens the accounts page and asserts on balances', async () => { | ||
const accountsPage = await navigation.goToAccountsPage(); | ||
|
||
const account = await accountsPage.getNthAccount(1); | ||
|
||
await expect(account.name).toHaveText('Ally Savings'); | ||
await expect(account.balance).toHaveText('7,653.00'); | ||
await expect(page).toMatchThemeScreenshots(); | ||
}); | ||
|
||
test('opens individual account page and checks that filtering is working', async () => { | ||
const accountsPage = await navigation.goToAccountsPage(); | ||
const accountPage = await accountsPage.openNthAccount(0); | ||
|
||
await expect(accountPage.heading).toHaveText('Bank of America'); | ||
await expect(accountPage.transactionList).toBeVisible(); | ||
await expect(await accountPage.getBalance()).toBeGreaterThan(0); | ||
await expect(accountPage.noTransactionsMessage).not.toBeVisible(); | ||
await expect(page).toMatchThemeScreenshots(); | ||
|
||
await accountPage.searchByText('nothing should be found'); | ||
await expect(accountPage.noTransactionsMessage).toBeVisible(); | ||
await expect(accountPage.transactions).toHaveCount(0); | ||
await expect(page).toMatchThemeScreenshots(); | ||
|
||
await accountPage.searchByText('Kroger'); | ||
await expect(accountPage.transactions).not.toHaveCount(0); | ||
await expect(page).toMatchThemeScreenshots(); | ||
}); | ||
}); |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+35.3 KB
...e-Accounts-opens-the-accounts-page-and-asserts-on-balances-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.7 KB
...e-Accounts-opens-the-accounts-page-and-asserts-on-balances-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.9 KB
...e-Accounts-opens-the-accounts-page-and-asserts-on-balances-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file added
BIN
+171 KB
...apshots/Accounts-Import-Transactions-import-csv-file-twice-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+166 KB
...apshots/Accounts-Import-Transactions-import-csv-file-twice-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+168 KB
...apshots/Accounts-Import-Transactions-import-csv-file-twice-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+153 KB
...s-Import-Transactions-imports-transactions-from-a-CSV-file-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+152 KB
...s-Import-Transactions-imports-transactions-from-a-CSV-file-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+151 KB
...s-Import-Transactions-imports-transactions-from-a-CSV-file-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-416 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+117 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-212 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-272 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-4-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-356 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-5-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-375 Bytes
(100%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-6-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+962 Bytes
(100%)
...es-a-new-account-and-views-the-initial-balance-transaction-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+987 Bytes
(100%)
...es-a-new-account-and-views-the-initial-balance-transaction-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1003 Bytes
(100%)
...es-a-new-account-and-views-the-initial-balance-transaction-3-chromium-linux.png
Oops, something went wrong.
Oops, something went wrong.