Skip to content

Commit

Permalink
lint!
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz committed Sep 6, 2024
1 parent 59412c7 commit 7ba9373
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/viewer/cypress/e2e/citation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ beforeEach(setup)

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

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

cy.wait(5000)

b.should("have.text", "Markdown link")
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');
});
});
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 7ba9373

Please sign in to comment.