Skip to content

Commit

Permalink
remove calls to vitest in cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin committed Mar 12, 2024
1 parent 19f3f2f commit 4583f3e
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions protocol-designer/cypress/integration/batchEdit.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { beforeEach, describe, it } from 'vitest'

describe('Batch Edit Transform', () => {
beforeEach(() => {
cy.visit('/')
Expand Down
2 changes: 0 additions & 2 deletions protocol-designer/cypress/integration/home.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { beforeEach, describe, it } from 'vitest'

describe('The Home Page', () => {
beforeEach(() => {
cy.visit('/')
Expand Down
1 change: 0 additions & 1 deletion protocol-designer/cypress/integration/migrations.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { beforeEach, describe, it } from 'vitest'
import 'cypress-file-upload'
import cloneDeep from 'lodash/cloneDeep'
import { expectDeepEqual } from '@opentrons/shared-data/js/cypressUtils'
Expand Down
1 change: 0 additions & 1 deletion protocol-designer/cypress/integration/mixSettings.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, it } from 'vitest'
const isMacOSX = Cypress.platform === 'darwin'
const invalidInput = 'abcdefghijklmnopqrstuvwxyz!@#$%^&*()<>?,-'
const batchEditClickOptions = { [isMacOSX ? 'metaKey' : 'ctrlKey']: true }
Expand Down
1 change: 0 additions & 1 deletion protocol-designer/cypress/integration/settings.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { describe, it, before } from 'vitest'
describe('The Settings Page', () => {
const exptlSettingText = 'Disable module placement restrictions'

Expand Down
2 changes: 0 additions & 2 deletions protocol-designer/cypress/integration/sidebar.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { describe, it, beforeEach } from 'vitest'

describe('Desktop Navigation', () => {
beforeEach(() => {
cy.visit('/')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { describe, it, before } from 'vitest'

const isMacOSX = Cypress.platform === 'darwin'
const batchEditClickOptions = { [isMacOSX ? 'metaKey' : 'ctrlKey']: true }

Expand Down
1 change: 0 additions & 1 deletion protocol-designer/cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="cypress" />

Check failure on line 1 in protocol-designer/cypress/plugins/index.js

View workflow job for this annotation

GitHub Actions / js checks

Do not use a triple slash reference for cypress, use `import` style instead

Check failure on line 1 in protocol-designer/cypress/plugins/index.js

View workflow job for this annotation

GitHub Actions / js checks

Do not use a triple slash reference for cypress, use `import` style instead
// ***********************************************************
// This example plugins/index.js can be used to load plugins
Expand Down
2 changes: 1 addition & 1 deletion protocol-designer/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Cypress.Commands.add('closeAnnouncementModal', () => {
cy.get('[data-test="ComputingSpinner"]', { timeout: 30000 }).should(
'not.exist'
)
cy.get('button').contains('Got It!').should('be.visible').click()
cy.get('button').contains('Got It!').should('be.visible').click({force: true})
})

//
Expand Down
2 changes: 1 addition & 1 deletion step-generation/src/commandCreators/atomic/engageMagnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const engageMagnet: CommandCreator<EngageMagnetArgs> = (
const { module: moduleId, engageHeight } = args
const commandType = 'magneticModule/engage'

if (module === null) {
if (moduleId === null) {
return {
errors: [errorCreators.missingModuleError()],
}
Expand Down

0 comments on commit 4583f3e

Please sign in to comment.