This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13513b2
commit 32197e8
Showing
8 changed files
with
29 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,20 @@ jobs: | |
|
||
- name: Run Backend unit tests | ||
run: npm run backend:test | ||
|
||
e2e: | ||
name: Test/E2E | ||
runs-on: ubuntu-latest | ||
# needs: | ||
# - unit-frontend | ||
# - unit-backend | ||
steps: | ||
- uses: convictional/[email protected] | ||
with: | ||
owner: topos-protocol | ||
repo: e2e-tests | ||
github_token: ${{ secrets.ROBOT_PAT_TRIGGER_E2E_WORKFLOWS }} | ||
workflow_file_name: frontend:faucet.yml | ||
ref: seb/too-343 | ||
wait_interval: 60 | ||
client_payload: '{ "faucet-ref": "${{ github.head_ref }}" }' |
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
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,30 +1,11 @@ | ||
import { INFO } from '../../src/constants/wordings' | ||
|
||
describe('Home', () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
|
||
it('should have Builders Program banner', () => { | ||
cy.get('.ant-alert-banner') | ||
.as('banner') | ||
.find('span') | ||
.contains(INFO.JOIN_BUILDERS_PROGRAM) | ||
.should('exist') | ||
.and('be.visible') | ||
cy.get('@banner') | ||
.find('a') | ||
.as('banner-link') | ||
.should('have.text', INFO.BUILDERS_PROGRAM) | ||
.and( | ||
'have.attr', | ||
'href', | ||
'https://builders.toposware.com/topos-builders-program-v1-0' | ||
) | ||
.and('not.be.disabled') | ||
it('should have visible and enabled address input', () => { | ||
cy.get('#faucet_address').should('be.visible').and('be.enabled') | ||
}) | ||
|
||
it('should have disabled address input', () => { | ||
cy.get('#faucet_address').should('be.visible').and('be.disabled') | ||
}) | ||
// 0x4aab25b4fad0beaac466050f3a7142a502f4cf0a | ||
}) |
Binary file not shown.
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