Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tests for switching networks and more swapping #896

Merged
merged 20 commits into from
Apr 20, 2022

Conversation

niemam29
Copy link
Contributor

No description provided.

niemam29 and others added 13 commits April 6, 2022 12:54
…mation-tests-swap

# Conflicts:
#	tests/pages/SwapPage.ts
#	tests/synpress/specs/swap/SwapTests.ts
#	tests/synpress/specs/swap/WalletConnectionTests.ts
#	tests/synpress/specs/swap/WrapTests.ts
#	tests/utils/AddressesEnum.ts
#	tests/utils/TransactionHelper.ts
# Conflicts:
#	src/components/Settings/index.tsx
#	src/components/TransactionSettings/index.tsx
#	tests/cypress/integration/smoke/TokenMenuTests.ts
#	tests/cypress/integration/smoke/TransactionSettingsTests.ts
#	tests/pages/TransactionSettings.ts
#	tests/synpress/specs/swap/SwapTests.ts
#	tests/synpress/specs/swap/WrapTests.ts
#	tests/synpress/synpress.json
#	tests/utils/TransactionHelper.ts
@niemam29 niemam29 marked this pull request as ready for review April 19, 2022 08:37
Copy link
Collaborator

@MilanVojnovic95 MilanVojnovic95 left a comment

Choose a reason for hiding this comment

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

It looks good, you just need to correct some mistakes in writing and that's all in my opinion. Great job!

cy.allowMetamaskToAddAndSwitchNetwork()
MenuBar.getNetworkSwitcher().should('contain.text', 'Arbitrum Rinkeby')
})
it('Should switch from mainet to gnosis by dapp [TC-55]', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo in 'mainet' it is mainnet.
Pls also check on other places.

)
TransactionHelper.checkSubgraphTransaction('DXD', 'WETH', estimatedTransactionOutput, TRANSACTION_VALUE)
})
})
it('Should swap DAI to eth [TC-53]', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should make a convention to write tokens in capital letters, such as DAI here so should ETH be also capital letters.

@niemam29 niemam29 merged commit ee6c419 into automation-tests Apr 20, 2022
niemam29 added a commit that referenced this pull request Apr 21, 2022
* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
niemam29 added a commit that referenced this pull request Apr 28, 2022
* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Fix showing avatar without an image

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* fix: hide unsupported net popup

* fix: remove whitespace

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added tests for switching networks and more swapping (#896) (#902)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>
niemam29 added a commit that referenced this pull request May 10, 2022
* Added tests for switching networks and more swapping (#896)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Tests for creating a campaign (#929)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Fix showing avatar without an image

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* fix: hide unsupported net popup

* fix: remove whitespace

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added tests for switching networks and more swapping (#896) (#902)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>

* Small fixes along with name changes, added possibility to add cypress plugins to synpress

* Fix for opening reward card

* Fix for opening reward card

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>
MilanVojnovic95 added a commit that referenced this pull request May 25, 2022
* Added tests for switching networks and more swapping (#896)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Tests for creating a campaign (#929)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Fix showing avatar without an image

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* fix: hide unsupported net popup

* fix: remove whitespace

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added tests for switching networks and more swapping (#896) (#902)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>

* Small fixes along with name changes, added possibility to add cypress plugins to synpress

* Fix for opening reward card

* Fix for opening reward card

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Add Liquidity WIP

* Add Liquidity WIP/small changes

* Add Liquidity/fix the typo

* Fix for failing test

* Add Liquidity/fix for getting element

* Add Liquidity/deleted unnecessary selector

* Add Liquidity/small fix for disconecting wallet

* Add Liquidity/adding comment

Co-authored-by: Kacper Kończyk <30408272+niemam29@users.noreply.github.com>
Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>
Co-authored-by: kacper29 <niemam29@gmail.com>
niemam29 added a commit that referenced this pull request May 26, 2022
* Added tests for switching networks and more swapping (#896)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Tests for creating a campaign (#929)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Fix showing avatar without an image

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* fix: hide unsupported net popup

* fix: remove whitespace

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added tests for switching networks and more swapping (#896) (#902)

* Added tests for swapping

* Added tests for swapping

* Transaction Settings Smoke Test

* Small fix for improving stability of the tests

* Small fix for improving stability of the tests

* Added tests for swaping

* Small fix for improving stability of the tests

* Added tests for wallet connection

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

* Added test for switching networks

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

* Added test for liquidity campaign creation

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>

* Small fixes along with name changes, added possibility to add cypress plugins to synpress

* Fix for opening reward card

* Fix for opening reward card

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Fixes from cr

* Add Liquidity WIP

* Add Liquidity WIP/small changes

* Add Liquidity/fix the typo

* Fix for failing test

* Add Liquidity/fix for getting element

* Add Liquidity/deleted unnecessary selector

* Add Liquidity/small fix for disconecting wallet

* Add Liquidity/adding comment

* Added tests for Polygon network (#991)

* Added tests for Polygon network

* Some minor improvment

* Deleted TODO

* Fixed problem with network switching

* Fixed problem with network switching

* Fixed problem with network switching

* Fixed problem with network switching

* Fixed problem with network switching

* Fixed problem with network switching

* Fixed problem with network switching

Co-authored-by: MilanVojnovic95 <mv.coversproduction@gmail.com>
Co-authored-by: Diogo <diogo.mart.ferreira@gmail.com>
Co-authored-by: Oskar Karcz <oskar.karcz@rumblefish.pl>
Co-authored-by: Adam Azad <adam@adamazad.com>
Co-authored-by: karczuRF <88723742+karczuRF@users.noreply.github.com>
Co-authored-by: MilanVojnovic95 <milan.vojnovic995@gmail.com>
Co-authored-by: Milan Vojnovic <57331244+MilanVojnovic95@users.noreply.github.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