Skip to content

Commit

Permalink
refactored and linted all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoel42 committed Dec 19, 2024
1 parent 8750068 commit 8259eec
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 640 deletions.
2 changes: 1 addition & 1 deletion protocol-designer/cypress/e2e/createNew.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { UniversalActions } from '../support/universalActions'
describe('The Redesigned Create Protocol Landing Page', () => {
beforeEach(() => {
cy.visit('/')
cy.contains('button', 'Confirm').click()
})

it('content and step 1 flow works', () => {
cy.closeAnalyticsModal()
cy.clickCreateNew()
cy.verifyCreateNewHeader()
verifyCreateProtocolPage()
Expand Down
2 changes: 1 addition & 1 deletion protocol-designer/cypress/e2e/import.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
describe('The Import Page', () => {
beforeEach(() => {
cy.visit('/')
cy.closeAnalyticsModal()

})

it('successfully loads a protocol exported on a previous version', () => {
Expand Down
4 changes: 3 additions & 1 deletion protocol-designer/cypress/e2e/migrations.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { TestFilePath } from '../support/testFiles'
describe('Protocol fixtures migrate and match snapshots', () => {
beforeEach(() => {
cy.visit('/')
cy.closeAnalyticsModal()
// Get rid of the analytics
cy.contains('button', 'Confirm').click()

})

const testCases: MigrateTestCase[] = [
Expand Down
2 changes: 1 addition & 1 deletion protocol-designer/cypress/e2e/settings.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe('The Settings Page', () => {
before(() => {
cy.visit('/')
cy.closeAnalyticsModal()
cy.contains('button', 'Confirm').click()
})

it('content and toggle state', () => {
Expand Down
Loading

0 comments on commit 8259eec

Please sign in to comment.