chore: rm committed t9n (#6792)

* chore: rm committed t9n

* chore: ignore t9n

* test(e2e): fix locale selection test
This commit is contained in:
Zach Pomerantz 2023-06-22 09:30:06 -04:00 committed by GitHub
parent 43b9e398b5
commit 5315272694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 18 additions and 111159 deletions

@ -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

3
.gitignore vendored

@ -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__

@ -1,8 +1,8 @@
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', () => {
}) })
} }
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', () => {
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', () => {
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', () => {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff