chore: rm committed t9n (#6792)
* chore: rm committed t9n * chore: ignore t9n * test(e2e): fix locale selection test
This commit is contained in:
parent
43b9e398b5
commit
5315272694
2
.github/workflows/1-main-to-staging.yml
vendored
2
.github/workflows/1-main-to-staging.yml
vendored
@ -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
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', () => {
|
||||||
|
3368
src/locales/af-ZA.po
3368
src/locales/af-ZA.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/ar-SA.po
3368
src/locales/ar-SA.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/ca-ES.po
3368
src/locales/ca-ES.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/cs-CZ.po
3368
src/locales/cs-CZ.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/da-DK.po
3368
src/locales/da-DK.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/de-DE.po
3368
src/locales/de-DE.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/el-GR.po
3368
src/locales/el-GR.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/es-ES.po
3368
src/locales/es-ES.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/fi-FI.po
3368
src/locales/fi-FI.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/fr-FR.po
3368
src/locales/fr-FR.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/he-IL.po
3368
src/locales/he-IL.po
File diff suppressed because it is too large
Load Diff
3369
src/locales/hu-HU.po
3369
src/locales/hu-HU.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/id-ID.po
3368
src/locales/id-ID.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/it-IT.po
3368
src/locales/it-IT.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/ja-JP.po
3368
src/locales/ja-JP.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/ko-KR.po
3368
src/locales/ko-KR.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/nl-NL.po
3368
src/locales/nl-NL.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/no-NO.po
3368
src/locales/no-NO.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/pl-PL.po
3368
src/locales/pl-PL.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/pt-BR.po
3368
src/locales/pt-BR.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/pt-PT.po
3368
src/locales/pt-PT.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/ro-RO.po
3368
src/locales/ro-RO.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/ru-RU.po
3368
src/locales/ru-RU.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/sl-SI.po
3368
src/locales/sl-SI.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/sr-SP.po
3368
src/locales/sr-SP.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/sv-SE.po
3368
src/locales/sv-SE.po
File diff suppressed because it is too large
Load Diff
3367
src/locales/sw-TZ.po
3367
src/locales/sw-TZ.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/th-TH.po
3368
src/locales/th-TH.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/tr-TR.po
3368
src/locales/tr-TR.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/uk-UA.po
3368
src/locales/uk-UA.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/vi-VN.po
3368
src/locales/vi-VN.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/zh-CN.po
3368
src/locales/zh-CN.po
File diff suppressed because it is too large
Load Diff
3368
src/locales/zh-TW.po
3368
src/locales/zh-TW.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user