-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into create-safe-status
- Loading branch information
Showing
49 changed files
with
951 additions
and
430 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
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 |
---|---|---|
|
@@ -10,9 +10,12 @@ jobs: | |
id-token: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
name: Deploy release | ||
|
||
env: | ||
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -36,32 +39,16 @@ jobs: | |
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
# Script to upload release files | ||
- name: 'Upload release build files for production' | ||
- name: Upload release build files for production | ||
env: | ||
BUCKET: s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/releases/${{ github.event.release.tag_name }} | ||
CHECKSUM_FILE: ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt | ||
run: bash ./scripts/github/s3_upload.sh | ||
|
||
# Script to prepare production deployments | ||
- run: bash ./scripts/github/prepare_production_deployment.sh | ||
- name: Prepare deployment | ||
run: bash ./scripts/github/prepare_production_deployment.sh | ||
env: | ||
PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }} | ||
PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }} | ||
VERSION_TAG: ${{ github.event.release.tag_name }} | ||
|
||
# Update the GitHub release with a checksummed archive | ||
- name: Upload archive | ||
- uses: Shopify/[email protected] | ||
with: | ||
path: ${{ env.ARCHIVE_NAME }}.tar.gz | ||
name: ${{ env.ARCHIVE_NAME }}.tar.gz | ||
content-type: application/gzip | ||
repo-token: ${{ github.token }} | ||
|
||
- name: Upload checksum | ||
uses: Shopify/[email protected] | ||
with: | ||
path: ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt | ||
name: ${{ env.ARCHIVE_NAME }}-sha256-checksum.txt | ||
content-type: text/plain | ||
repo-token: ${{ github.token }} |
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,136 @@ | ||
/* eslint-disable */ | ||
import * as constants from '../../support/constants.js' | ||
import * as main from '../pages/main.page.js' | ||
import * as createTx from '../pages/create_tx.pages.js' | ||
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js' | ||
|
||
let staticSafes = [] | ||
const startDate = '01/12/2023' | ||
const endDate = '01/12/2023' | ||
const startDate2 = '20/12/2023' | ||
const endDate2 = '20/12/2023' | ||
|
||
describe('Tx history happy path tests 1', () => { | ||
before(async () => { | ||
staticSafes = await getSafes(CATEGORIES.static) | ||
}) | ||
|
||
beforeEach(() => { | ||
cy.clearLocalStorage() | ||
cy.visit(constants.transactionsHistoryUrl + staticSafes.SEP_STATIC_SAFE_7) | ||
main.acceptCookies() | ||
}) | ||
|
||
it('Verify a user can filter incoming transactions by dates, amount and token address', () => { | ||
const uiDate = 'Dec 1, 2023' | ||
const uiDate2 = 'Dec 1, 2023 - 8:05:00 AM' | ||
const uiDate3 = 'Dec 1, 2023 - 7:52:36 AM' | ||
const uiDate4 = 'Dec 15, 2023 - 10:33:00 AM' | ||
const amount = '0.001' | ||
const token = '0x7CB180dE9BE0d8935EbAAc9b4fc533952Df128Ae' | ||
|
||
// date and amount | ||
createTx.clickOnFilterBtn() | ||
createTx.setTxType(createTx.filterTypes.incoming) | ||
createTx.fillFilterForm({ endDate: endDate, amount: amount }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(2) | ||
createTx.checkTxItemDate(0, uiDate) | ||
createTx.checkTxItemDate(1, uiDate) | ||
|
||
// combined filters | ||
createTx.clickOnFilterBtn() | ||
createTx.fillFilterForm({ startDate: startDate }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(2) | ||
createTx.checkTxItemDate(0, uiDate) | ||
createTx.checkTxItemDate(1, uiDate) | ||
|
||
// reset txs | ||
createTx.clickOnFilterBtn() | ||
createTx.clickOnClearBtn() | ||
createTx.verifyNumberOfTransactions(25) | ||
|
||
// chronological order | ||
createTx.fillFilterForm({ startDate: startDate, endDate: endDate }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(7) | ||
createTx.checkTxItemDate(5, uiDate2) | ||
createTx.checkTxItemDate(6, uiDate3) | ||
|
||
// token | ||
createTx.clickOnFilterBtn() | ||
createTx.clickOnClearBtn() | ||
createTx.fillFilterForm({ token: token }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(1) | ||
createTx.checkTxItemDate(0, uiDate4) | ||
|
||
// no txs | ||
createTx.clickOnFilterBtn() | ||
createTx.fillFilterForm({ startDate: startDate2, endDate: endDate2 }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNoTxDisplayed('incoming') | ||
}) | ||
|
||
it('Verify a user can filter outgoing transactions by dates, nonce, amount and recipient', () => { | ||
const uiDate = 'Nov 30, 2023 - 11:06:00 AM' | ||
const uiDate2 = 'Dec 1, 2023 - 7:54:36 AM' | ||
const uiDate3 = 'Dec 1, 2023 - 7:37:24 AM' | ||
const uiDate4 = 'Nov 30, 2023 - 11:02:12 AM' | ||
const amount = '0.000000000001' | ||
const recipient = 'sep:0x06373d5e45AD31BD354CeBfA8dB4eD2c75B8708e' | ||
|
||
// date and recipient | ||
createTx.clickOnFilterBtn() | ||
createTx.setTxType(createTx.filterTypes.outgoing) | ||
|
||
createTx.fillFilterForm({ endDate: endDate, recipient: recipient }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(1) | ||
createTx.checkTxItemDate(0, uiDate4) | ||
|
||
// combined filters | ||
createTx.clickOnFilterBtn() | ||
createTx.fillFilterForm({ startDate: startDate }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(0) | ||
|
||
// reset txs | ||
createTx.clickOnFilterBtn() | ||
createTx.clickOnClearBtn() | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(14) | ||
|
||
// chronological order | ||
createTx.clickOnFilterBtn() | ||
createTx.fillFilterForm({ startDate: startDate, endDate: endDate }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(2) | ||
createTx.checkTxItemDate(0, uiDate2) | ||
createTx.checkTxItemDate(1, uiDate3) | ||
|
||
// nonce | ||
createTx.clickOnFilterBtn() | ||
createTx.clickOnClearBtn() | ||
createTx.fillFilterForm({ nonce: '1' }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(1) | ||
createTx.checkTxItemDate(0, uiDate) | ||
|
||
// amount | ||
createTx.clickOnFilterBtn() | ||
createTx.clickOnClearBtn() | ||
createTx.fillFilterForm({ amount: amount }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(1) | ||
createTx.checkTxItemDate(0, uiDate4) | ||
|
||
// no txs | ||
createTx.clickOnFilterBtn() | ||
createTx.clickOnClearBtn() | ||
createTx.fillFilterForm({ startDate: startDate2, endDate: endDate2 }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNoTxDisplayed('outgoing') | ||
}) | ||
}) |
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,30 @@ | ||
import * as constants from '../../support/constants.js' | ||
import * as main from '../pages/main.page.js' | ||
import * as createTx from '../pages/create_tx.pages.js' | ||
import { getSafes, CATEGORIES } from '../../support/safes/safesHandler.js' | ||
|
||
let staticSafes = [] | ||
|
||
describe('Tx history happy path tests 2', () => { | ||
before(async () => { | ||
staticSafes = await getSafes(CATEGORIES.static) | ||
}) | ||
|
||
beforeEach(() => { | ||
cy.clearLocalStorage() | ||
cy.visit(constants.transactionsHistoryUrl + staticSafes.SEP_STATIC_SAFE_8) | ||
main.acceptCookies() | ||
}) | ||
|
||
it('Verify a user can filter outgoing transactions by module', () => { | ||
const moduleAddress = 'sep:0xCFbFaC74C26F8647cBDb8c5caf80BB5b32E43134' | ||
const uiDate = 'Jan 30, 2024 - 10:53:48 AM' | ||
|
||
createTx.clickOnFilterBtn() | ||
createTx.setTxType(createTx.filterTypes.module) | ||
createTx.fillFilterForm({ address: moduleAddress }) | ||
createTx.clickOnApplyBtn() | ||
createTx.verifyNumberOfTransactions(1) | ||
createTx.checkTxItemDate(0, uiDate) | ||
}) | ||
}) |
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.