Commit 53152726 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

chore: rm committed t9n (#6792)

* chore: rm committed t9n

* chore: ignore t9n

* test(e2e): fix locale selection test
parent 43b9e398
...@@ -44,7 +44,7 @@ jobs: ...@@ -44,7 +44,7 @@ jobs:
- name: Add translations - name: Add translations
run: | run: |
rm src/locales/en-US.po rm src/locales/en-US.po
git add src/locales/*.po git add -f src/locales/*.po
git commit -m 'ci(t9n): download translations from crowdin' git commit -m 'ci(t9n): download translations from crowdin'
- name: Add CODEOWNERS - name: Add CODEOWNERS
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
/src/types/v3 /src/types/v3
/src/abis/types /src/abis/types
/src/locales/**/*.js /src/locales/**/*.js
/src/locales/**/en-US.po /src/locales/**/*.po
/src/locales/**/pseudo.po
# generated files # generated files
/src/**/__generated__ /src/**/__generated__
......
import { getTestSelector } from '../utils' import { getTestSelector } from '../utils'
describe('Wallet Dropdown', () => { describe('Wallet Dropdown', () => {
function itShouldChangeTheTheme() { function itChangesTheme() {
it('should change the theme', () => { it('should change theme', () => {
cy.get(getTestSelector('theme-lightmode')).click() cy.get(getTestSelector('theme-lightmode')).click()
cy.get(getTestSelector('theme-lightmode')).should('not.have.css', 'background-color', 'rgba(0, 0, 0, 0)') cy.get(getTestSelector('theme-lightmode')).should('not.have.css', 'background-color', 'rgba(0, 0, 0, 0)')
...@@ -21,13 +21,17 @@ describe('Wallet Dropdown', () => { ...@@ -21,13 +21,17 @@ describe('Wallet Dropdown', () => {
}) })
} }
function itShouldChangeTheLanguage() { function itChangesLocale() {
it('should select a language', () => { it('should change locale', () => {
cy.get(getTestSelector('wallet-language-item')).contains('Deutsch').click({ force: true }) cy.contains('Uniswap available in: English').should('not.exist')
cy.get(getTestSelector('wallet-header')).should('contain', 'Sprache')
cy.get(getTestSelector('wallet-language-item')).contains('Afrikaans').click({ force: true })
cy.location('hash').should('match', /\?lng=af-ZA$/)
cy.contains('Uniswap available in: English')
cy.get(getTestSelector('wallet-language-item')).contains('English').click({ force: true }) cy.get(getTestSelector('wallet-language-item')).contains('English').click({ force: true })
cy.get(getTestSelector('wallet-header')).should('contain', 'Language') cy.location('hash').should('match', /\?lng=en-US$/)
cy.get(getTestSelector('wallet-back')).click() cy.contains('Uniswap available in: English').should('not.exist')
}) })
} }
...@@ -37,8 +41,8 @@ describe('Wallet Dropdown', () => { ...@@ -37,8 +41,8 @@ describe('Wallet Dropdown', () => {
cy.get(getTestSelector('web3-status-connected')).click() cy.get(getTestSelector('web3-status-connected')).click()
cy.get(getTestSelector('wallet-settings')).click() cy.get(getTestSelector('wallet-settings')).click()
}) })
itShouldChangeTheTheme() itChangesTheme()
itShouldChangeTheLanguage() itChangesLocale()
}) })
describe('testnet toggle', () => { describe('testnet toggle', () => {
...@@ -68,8 +72,8 @@ describe('Wallet Dropdown', () => { ...@@ -68,8 +72,8 @@ describe('Wallet Dropdown', () => {
cy.get(getTestSelector('wallet-disconnect')).click() cy.get(getTestSelector('wallet-disconnect')).click()
cy.get(getTestSelector('wallet-settings')).click() cy.get(getTestSelector('wallet-settings')).click()
}) })
itShouldChangeTheTheme() itChangesTheme()
itShouldChangeTheLanguage() itChangesLocale()
}) })
describe('with color theme', () => { describe('with color theme', () => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment