Skip to content

Commit

Permalink
test: quote notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Myllaume committed Jan 6, 2025
1 parent 3c1bc91 commit a4e2e52
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion e2e/record.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('Record', () => {
});
});

it('should bibliographic record contains citeproc', () => {
it('should create bibliographic record contains quote note', () => {
cy.visit('temp/citeproc.html#matuschak2019');
assertRecordPanelIsOpened();
cy.get('.record-content:visible').should(
Expand All @@ -155,6 +155,24 @@ describe('Record', () => {
);
});

it('should add quote notes at footer of record', () => {
cy.visit('temp/citeproc.html#tools-for-thought');

const notes = [
'ENGELBART, Douglas C, 1962. AFOSR-3223: Augmenting Human Intellect: A Conceptual Framework',
'MATUSCHAK, Andy et NIELSEN, Michael, 2019. How can we develop transformative tools for thought?',
];

cy.get('.record-content:visible')
.find('.csl-entry')
.as('quoteNotes')
.should('have.length', notes.length);

notes.forEach((n, i) => {
cy.get('@quoteNotes').eq(i).should('contains.text', n);
});
});

describe('footer', () => {
beforeEach(() => {
cy.get('[data-node="tools-for-thought"]').click();
Expand Down

0 comments on commit a4e2e52

Please sign in to comment.