Skip to content

Commit

Permalink
add citation e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz committed Sep 6, 2024
1 parent c50e757 commit 59412c7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/viewer/cypress/e2e/citation.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { setup } from '../support'

beforeEach(setup)

describe('citation button', () => {
it('copies Markdown links', () => {
cy.visit("/")

let b = cy.get('button').contains('Markdown Link')
b.click()
b.should("have.text", "Copied!")

cy.wait(5000)

b.should("have.text", "Markdown link")

cy.window().then((win) => {
win.navigator.clipboard.readText().then((text) => {
expect(text).to.contain('π-Base, a community database of topological counterexamples');
});
});
})
})

0 comments on commit 59412c7

Please sign in to comment.