Skip to content

Commit

Permalink
Remove summary test and fixup translations
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Feb 3, 2025
1 parent 8d7967b commit cbc4bc7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 78 deletions.
4 changes: 0 additions & 4 deletions cfgov/ask_cfpb/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ msgstr ""
msgid "last reviewed"
msgstr "revisado"

#: ask_cfpb/jinja2/ask-cfpb/answer-page.html:60
msgid "Read full answer"
msgstr "Leer más"

#: ask_cfpb/jinja2/ask-cfpb/answer-page.html:66
#: ask_cfpb/jinja2/ask-cfpb/see-all.html:86
msgid "Don't see what you're looking for?"
Expand Down

This file was deleted.

59 changes: 0 additions & 59 deletions test/cypress/integration/consumer-tools/ask-cfpb/ask-cfpb.cy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { AskCfpbSearch } from './search-helpers.cy.js';
import { AskCfpbAnswerPage } from './answer-helpers.cy.js';

const search = new AskCfpbSearch();
const answerPage = new AskCfpbAnswerPage();

describe('Ask CFPB', () => {
describe('Search', () => {
Expand Down Expand Up @@ -50,61 +48,4 @@ describe('Ask CFPB', () => {
search.resetButton().should('not.be.visible');
});
});

describe('Answer Page', () => {
describe('on desktop', () => {
beforeEach(() => {
cy.viewport(1200, 800);
answerPage.open();
});

it('should not hide content on desktop', () => {
answerPage.getFirstLinkInSummary().should('be.visible');
answerPage.getFirstLinkInSummary().focus();
answerPage.getFirstLinkInSummary().should('be.visible');
answerPage.getSummaryBtn().should('not.be.visible');
});
});

describe('on mobile', () => {
beforeEach(() => {
answerPage.open();
cy.viewport(480, 800);
});

it('should hide content on mobile', () => {
cy.get('.o-summary__content').should(
'have.class',
'u-max-height-transition',
);
cy.get('.o-summary__content').should(
'have.class',
'u-max-height-summary',
);
cy.get('.o-summary__content')
.invoke('outerHeight')
.should('be.lte', 92);
answerPage.getFirstLinkInSummary().should('not.be.visible');
answerPage.getSummaryBtn().click();
answerPage.getFirstLinkInSummary().should('be.visible');
cy.get('.o-summary__content').should(
'have.class',
'u-max-height-transition',
);
cy.get('.o-summary__content').should(
'not.have.class',
'u-no-animation',
);
cy.get('.o-summary__content').should(
'not.have.class',
'u-max-height-summary',
);
cy.get('.o-summary__content').should(
'have.class',
'u-max-height-default',
);
cy.get('.o-summary__content').invoke('outerHeight').should('be.gt', 92);
});
});
});
});

0 comments on commit cbc4bc7

Please sign in to comment.