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

Sprint 64 release candidate to STAGE #880

Merged
merged 34 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9b9bdec
VOTE-2334: Accessibility controls border contrast (#842)
mlloydbixal Jul 17, 2024
79c6f20
Vote-2372: String Translations -> Spanish (#855)
clmedders Jul 17, 2024
8be0746
VOTE-2371: Add Spanish Aria Labels (#858)
rkoch2 Jul 17, 2024
ff6f8e2
VOTE-2411 Fix typo in overseas voter card (#859)
SamiraMSadat Jul 18, 2024
80f0316
VOTE-2369 State page spanish translation updates (#856)
SamiraMSadat Jul 18, 2024
6e66704
Vote-2195: Cypress version and test updates (#860)
clmedders Jul 18, 2024
ba9aae0
Adding a sleep command to wait to rerun any failed test (#865)
clmedders Jul 19, 2024
4255192
VOTE-2418: Resolve issue with taxonomy page loading when not loading …
daniel-crowder Jul 19, 2024
17a7dad
VOTE-1121 Update SCSS to select USWDS packages (#837)
SamiraMSadat Jul 19, 2024
0345ca5
VOTE-2240: Add high contrast main navigation menu styles (#822)
mlloydbixal Jul 20, 2024
530ec67
VOTE-2319 Change date format for election day to long format (#863)
SamiraMSadat Jul 22, 2024
c50dc0c
Vote-2364: Test coverage for accessibility toolbar (#862)
clmedders Jul 22, 2024
becbb43
VOTE-2429: Add external link class to Military and Overseas card (#866)
mlloydbixal Jul 22, 2024
c90bc95
VOTE-2388: adjust heading max width for heading (#869)
mlloydbixal Jul 22, 2024
8d41e98
VOTE-2424: removes lazy loading from hero image (#867)
mlloydbixal Jul 22, 2024
d06ace1
VOTE-2443 Replace spanish usa.gov links in the footer (#864)
SamiraMSadat Jul 22, 2024
13aa02f
VOTE-2381: Add 'lang' attribute to language names (#868)
mlloydbixal Jul 23, 2024
f46228a
VOTE-2477: Add translation for know your voter rights (#872)
clmedders Jul 23, 2024
cb83936
VOTE-2433 Add Spanish translation for secondary nav aria label (#873)
SamiraMSadat Jul 23, 2024
44ac4f3
Merge pull request #877 from usagov/stage
rayestrada Jul 24, 2024
9cf4e56
BUGFIX: remove 'of' from alias ignore settings (#861)
rayestrada Jul 24, 2024
3a71300
VOTE-2272 replace touchpoints global button modal with a link to a ho…
rayestrada Jul 24, 2024
ca6f179
VOTE-2444 start or update registration copy change (#878)
SamiraMSadat Jul 24, 2024
e79b38d
VOTE-2324: Enable Somali for production. (#875)
daniel-crowder Jul 25, 2024
d238d05
Vote 2425: hide untranslated content (#881)
rayestrada Jul 25, 2024
2adb42a
VOTE-2490 add config translations for home label (#882)
rayestrada Jul 25, 2024
be18638
VOTE-2505 Add (FVAP) back into temporary voter cards (#883)
SamiraMSadat Jul 26, 2024
709759e
VOTE-972: Add robotstxt module. set robots.txt file per env (#758)
daniel-crowder Jul 27, 2024
8244567
VOTE-2372 Fix regression in state registration string
rayestrada Jul 28, 2024
e4283ce
VOTE-2324 Update somali config file
rayestrada Jul 28, 2024
b81652c
HOTFIX replace Virginia with @state_name in string translations
rayestrada Jul 28, 2024
0a2f27e
VOTE-2443 add missing double quotes around href attributes
rayestrada Jul 28, 2024
d46c07a
VOTE-2381 correct lang attributes in language swticher
rayestrada Jul 28, 2024
bc1085b
VOTE-2272 make touchpoints button translatable
rayestrada Jul 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- run:
name: "Cypress - frontend tests - rerun"
command: |
sleep 120
echo "I am the result of frontend tests failed job"
cd testing
npm install
Expand All @@ -77,6 +78,7 @@ jobs:
- run:
name: "Cypress - axe tests - rerun"
command: |
sleep 120
echo "I am the result of axe tests failed job"
cd testing
npm install
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/drush/Commands/contrib/
/web/profiles/contrib/
/web/libraries/
/web/robots.txt

# Ignore configuration files that may contain sensitive information.
/web/sites/*/settings*.php
Expand Down
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"drupal/redirect": "^1.8",
"drupal/remove_http_headers": "^2.0",
"drupal/rest_views": "^3.0",
"drupal/robotstxt": "^1.5",
"drupal/s3fs": "^3.1",
"drupal/samlauth": "^3.8",
"drupal/simple_sitemap": "^4.1",
Expand Down Expand Up @@ -143,5 +144,13 @@
" composer remove drupal/core-project-message"
]
}
},
"scripts": {
"post-install-cmd": [
"test -e web/robots.txt && rm web/robots.txt || echo The default robots.txt file has been deleted."
],
"post-update-cmd": [
"test -e web/robots.txt && rm web/robots.txt || echo The default robots.txt file has been deleted."
]
}
}
57 changes: 57 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions config/local/config_split.patch.language.entity.so.yml

This file was deleted.

9 changes: 0 additions & 9 deletions config/production/config_split.patch.language.entity.so.yml

This file was deleted.

3 changes: 3 additions & 0 deletions config/production/robotstxt.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_core:
default_config_hash: ceCx5XZ_ay1Mxcv-sB95U_fBKoVkpvo8RaQiwutSZLI
content: "#\r\n# robots.txt\r\n#\r\n# This file is to prevent the crawling and indexing of certain parts\r\n# of your site by web crawlers and spiders run by sites like Yahoo!\r\n# and Google. By telling these \"robots\" where not to go on your site,\r\n# you save bandwidth and server resources.\r\n#\r\n# This file will be ignored unless it is at the root of your host:\r\n# Used: http://example.com/robots.txt\r\n# Ignored: http://example.com/site/robots.txt\r\n#\r\n# For more information about the robots.txt standard, see:\r\n# http://www.robotstxt.org/robotstxt.html\r\n\r\nUser-agent: *\r\nCrawl-delay: 10\r\n\r\n# Sitemaps\r\nSitemap: https://vote.gov/sitemap.xml\r\n\r\n# CSS, JS, Images\r\nAllow: /*.css$\r\nAllow: /*.js$\r\nAllow: /core/*.css$\r\nAllow: /core/*.css?\r\nAllow: /core/*.js$\r\nAllow: /modules/*.css$\r\nAllow: /modules/*.css?\r\nAllow: /modules/*.js$\r\nAllow: /modules/*.js?\r\nAllow: /modules/*.gif\r\nAllow: /modules/*.jpg\r\nAllow: /modules/*.jpeg\r\nAllow: /modules/*.png\r\nAllow: /themes/*.css$\r\nAllow: /themes/*.css?\r\nAllow: /themes/*.js$\r\nAllow: /themes/*.js?\r\nAllow: /themes/*.gif\r\nAllow: /themes/*.jpg\r\nAllow: /themes/*.jpeg\r\nAllow: /themes/*.png\r\n# Directories\r\nDisallow: /core/\r\nDisallow: /modules/\r\nDisallow: /themes/\r\n"
1 change: 1 addition & 0 deletions config/sync/config_split.config_split.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ theme: { }
complete_list:
- log_stdout.settings
- new_relic_rpm.settings
- robotstxt.settings
- s3fs.settings
- samlauth.authentication
- usagov_login.settings
Expand Down
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module:
remove_http_headers: 0
rest: 0
rest_views: 0
robotstxt: 0
serialization: 0
simple_sitemap: 0
system: 0
Expand Down
1 change: 0 additions & 1 deletion config/sync/language.entity.so.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ uuid: 2b30c6ab-f133-4c1d-a7be-997bb27da4b6
langcode: so
status: true
dependencies: { }
third_party_settings: { }
id: so
label: Somali
direction: ltr
Expand Down
1 change: 1 addition & 0 deletions config/sync/language/am/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'መነሻ ገጽ'
1 change: 1 addition & 0 deletions config/sync/language/ar/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'الصفحة الرئيسية'
1 change: 1 addition & 0 deletions config/sync/language/bn/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: হোমপেজ
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
settings:
label: 'Pestañas principales'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
settings:
label: 'Pestañas secundarias'
1 change: 1 addition & 0 deletions config/sync/language/es/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Página principal'
1 change: 1 addition & 0 deletions config/sync/language/fr/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: "Page d'accueil"
1 change: 1 addition & 0 deletions config/sync/language/hi/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'मुख्य पृष्ठ'
1 change: 1 addition & 0 deletions config/sync/language/ht/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Paj dakèy'
1 change: 1 addition & 0 deletions config/sync/language/km/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: ទំព័រដើម
1 change: 1 addition & 0 deletions config/sync/language/ko/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 홈페이지
1 change: 1 addition & 0 deletions config/sync/language/nv/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Hooghangi naaltsoos'
1 change: 1 addition & 0 deletions config/sync/language/pt/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Página inicial'
1 change: 1 addition & 0 deletions config/sync/language/ru/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Главная страница'
1 change: 1 addition & 0 deletions config/sync/language/so/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Bogga guriga'
1 change: 1 addition & 0 deletions config/sync/language/tl/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: Homepage
1 change: 1 addition & 0 deletions config/sync/language/vi/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Trang chủ'
1 change: 1 addition & 0 deletions config/sync/language/ypk/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 'Nem pinga'
1 change: 1 addition & 0 deletions config/sync/language/zh-hans/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 主页
1 change: 1 addition & 0 deletions config/sync/language/zh/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
home_segment_title: 主頁
2 changes: 1 addition & 1 deletion config/sync/pathauto.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ max_component_length: 100
transliterate: true
reduce_ascii: false
case: true
ignore_words: 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with'
ignore_words: 'a, an, as, at, before, but, by, for, from, is, in, into, like, off, on, onto, per, since, than, the, this, that, to, up, via, with'
update_action: 2
safe_tokens:
- alias
Expand Down
1 change: 1 addition & 0 deletions config/sync/robotstxt.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
content: "#\r\n# robots.txt\r\n#\r\n# This file is to prevent the crawling and indexing of certain parts\r\n# of your site by web crawlers and spiders run by sites like Yahoo!\r\n# and Google. By telling these \"robots\" where not to go on your site,\r\n# you save bandwidth and server resources.\r\n#\r\n# This file will be ignored unless it is at the root of your host:\r\n# Used: http://example.com/robots.txt\r\n# Ignored: http://example.com/site/robots.txt\r\n#\r\n# For more information about the robots.txt standard, see:\r\n# http://www.robotstxt.org/robotstxt.html\r\n\r\nUser-agent: *\r\nDisallow: /\r\n"
2 changes: 2 additions & 0 deletions config/sync/user.role.site_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies:
- redirect
- remove_http_headers
- rest
- robotstxt
- simple_sitemap
- system
- taxonomy
Expand Down Expand Up @@ -110,6 +111,7 @@ permissions:
- 'administer redirect settings'
- 'administer redirects'
- 'administer rest resources'
- 'administer robots.txt'
- 'administer site configuration'
- 'administer sitemap settings'
- 'administer software updates'
Expand Down
27 changes: 0 additions & 27 deletions testing/cypress/e2e/backEndTests/basic-page.cy.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
/// <reference types="cypress" />

describe('test for basic page', () => {

it('test role access to publish', () => {
cy.signin(Cypress.env('roles').site_admin.username, Cypress.env('test_pass'))
// * site admin can publish
cy.visit('/node/add/page')
cy.get('[data-drupal-selector="edit-moderation-state-0-state"]').find('option').then(option => {
cy.wrap(option).should('contain', 'Published')
})
cy.logout()

cy.signin(Cypress.env('roles').content_manager.username, Cypress.env('test_pass'))
// * content manager can publish
cy.visit('/node/add/page')
cy.get('[data-drupal-selector="edit-moderation-state-0-state"]').find('option').then(option => {
cy.wrap(option).should('contain', 'Published')
})
cy.logout()

// * content editor cannot publish
cy.signin(Cypress.env('roles').content_editor.username, Cypress.env('test_pass'))
cy.visit('/node/add/page')
cy.get('[data-drupal-selector="edit-moderation-state-0-state"]').find('option').then(option => {
cy.wrap(option).should('not.contain', 'Published')
cy.logout()

})
})
it('test url alias', () => {

cy.signin(Cypress.env('roles').site_admin.username, Cypress.env('test_pass'))
Expand Down
7 changes: 7 additions & 0 deletions testing/cypress/e2e/backEndTests/content-editor-access.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,11 @@ describe('Test Content Editor Role Access', () => {
})
})

it('verify ability to publish', () => {
cy.visit('/node/add/page')
cy.get('[data-drupal-selector="edit-moderation-state-0-state"]').find('option').then(option => {
cy.wrap(option).should('not.contain', 'Published')
})
})

})
7 changes: 7 additions & 0 deletions testing/cypress/e2e/backEndTests/content-manager-access.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,11 @@ describe('Test Content Manager Role Access', () => {
expect(response.status).to.eq(200)
})
})

it('verify ability to publish', () => {
cy.visit('/node/add/page')
cy.get('[data-drupal-selector="edit-moderation-state-0-state"]').find('option').then(option => {
cy.wrap(option).should('contain', 'Published')
})
})
})
2 changes: 1 addition & 1 deletion testing/cypress/e2e/backEndTests/footer-menu-editor.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Footer Menu Function', () => {

cy.get('[data-drupal-selector="edit-title-0-value"]').type('Cypress Test Link')
cy.get('[data-drupal-selector="edit-link-0-uri"]').type('https://www.bixal.com/')
cy.get('[data-drupal-selector="edit-weight-0-value"]').clear().type('-99')
cy.get('[data-drupal-selector="edit-menu-link-display-settings"]').click().get('[data-drupal-selector="edit-weight-0-value"]').clear().type('-99')


cy.get('[data-drupal-selector="edit-submit"]').click()
Expand Down
7 changes: 7 additions & 0 deletions testing/cypress/e2e/backEndTests/site-admin-access.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@ describe('Test Site Admin Role access', () => {
})
})

it('verify ability to publish', () => {
cy.visit('/node/add/page')
cy.get('[data-drupal-selector="edit-moderation-state-0-state"]').find('option').then(option => {
cy.wrap(option).should('contain', 'Published')
})
})

})
43 changes: 43 additions & 0 deletions testing/cypress/e2e/frontEndTests/accessability-toolbar.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/// <reference types="cypress" />

describe('check accessability tool bar', () => {
beforeEach('visit site', () => {
cy.visit('/')
})

it('verify that tool bar is present', () => {
cy.get('[data-test="themeSwitcher"]').should('be.visible')
})

it('verify page switches themes', () => {
cy.get('[data-test="themeContrast"]').click()
cy.get('[data-theme="contrast"]').should('exist')
cy.get('[data-test="themeContrast"]').click()
cy.get('[data-theme="default"]').should('exist')
})

it('verify text enlarges', () => {
cy.get('[data-test="themeText"]').click()
cy.get('[data-scale="large"]').should('exist')
cy.get('[data-test="themeText"]').click()
cy.get('[data-scale="x-large"]').should('exist')
cy.get('[data-test="themeText"]').click()
cy.get('[data-scale="default"]').should('exist')

})

it.only('verify theme presents across pages', () => {
// verify contrast theme
cy.get('[data-test="themeContrast"]').click()
cy.visit('/about-us').get('[data-theme="contrast"]').should('exist')
cy.get('[data-test="themeContrast"]').click()
cy.visit('/').get('[data-theme="default"]').should('exist')

// verify text enlargement
cy.get('[data-test="themeText"]').click()
cy.visit('/about-us').get('[data-scale="large"]').should('exist')
cy.get('[data-test="themeText"]').click()
cy.visit('/').get('[data-scale="x-large"]').should('exist')
})

})
2 changes: 0 additions & 2 deletions testing/cypress/e2e/frontEndTests/state-pages.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// <reference types="cypress" />

// * data-test="registration-info"

describe('test state pages', () => {
it('test - online', () => {
cy.visit('/register/ak')
Expand Down
Loading