Skip to content

Commit

Permalink
migrate mix settings and tranfer settings tests
Browse files Browse the repository at this point in the history
shlokamin committed Apr 1, 2024
1 parent 896f3af commit e307b0d
Showing 3 changed files with 40 additions and 50 deletions.
1 change: 0 additions & 1 deletion protocol-designer/cypress.config.js
Original file line number Diff line number Diff line change
@@ -11,6 +11,5 @@ module.exports = defineConfig({
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:5178',
testIsolation: false,
},
})
38 changes: 15 additions & 23 deletions protocol-designer/cypress/e2e/mixSettings.cy.js
Original file line number Diff line number Diff line change
@@ -45,7 +45,8 @@ describe('Advanced Settings for Mix Form', () => {
importProtocol()
openDesignTab()
})
it('Verify functionality of mix settings with different labware', () => {
it('should verify the batch edit form works as expected', () => {
// Verify functionality of mix settings with different labware
enterBatchEdit()

// Different labware disbales aspirate and dispense Flowrate , tipPosition, delay and touchTip
@@ -74,8 +75,8 @@ describe('Advanced Settings for Mix Form', () => {

// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})
it('Verify functionality of mix settings with same labware', () => {

// Verify functionality of mix settings with same labware
enterBatchEdit()

// Same labware enables aspirate and dispense Flowrate ,tipPosition ,delay and touchTip
@@ -102,8 +103,8 @@ describe('Advanced Settings for Mix Form', () => {

// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})
it('verify invalid input in delay field', () => {

// Verify invalid input in delay field
// click on step 2 in batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)

@@ -117,9 +118,8 @@ describe('Advanced Settings for Mix Form', () => {

// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify indeterminate state of flowrate', () => {
// Verify indeterminate state of flowrate
// click on step 2 in batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
cy.get('input[name="aspirate_flowRate"]').click({ force: true })
@@ -138,9 +138,8 @@ describe('Advanced Settings for Mix Form', () => {

// indeterminate state in flowrate is empty
cy.get('input[name="aspirate_flowRate"]').should('have.value', '')
})

it('verify functionality of flowrate in batch edit mix form', () => {
// Verify functionality of flowrate in batch edit mix form
// Batch editing the Flowrate value
cy.get('input[name="aspirate_flowRate"]').click({ force: true })
cy.contains(
@@ -168,9 +167,8 @@ describe('Advanced Settings for Mix Form', () => {

// Verify that flowrate value
cy.get('input[name="aspirate_flowRate"]').should('have.value', 100)
})

it('verify delay settings indeterminate value', () => {
// Verify delay settings indeterminate value
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Select delay settings
@@ -190,9 +188,8 @@ describe('Advanced Settings for Mix Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify delay settings batch editing in mix form', () => {
// Verify delay settings batch editing in mix form
// Click on step 1, to enter batch edit mode
cy.get('[data-test="StepItem_1"]').click(batchEditClickOptions)
// Click on step 2 to batch edit mix settings
@@ -219,9 +216,8 @@ describe('Advanced Settings for Mix Form', () => {

// Verify that volume is set to 2
cy.get('input[name="aspirate_delay_seconds"]').should('have.value', 2)
})

it('verify touchTip settings indeterminate value', () => {
// Verify touchTip settings indeterminate value
cy.get('[data-test="StepItem_2"]').click()
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
@@ -241,9 +237,8 @@ describe('Advanced Settings for Mix Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify touchTip settings batch editing in mix form', () => {
// Verify touchTip settings batch editing in mix form
cy.get('[data-test="StepItem_2"]').click()
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
@@ -275,9 +270,8 @@ describe('Advanced Settings for Mix Form', () => {
'have.value',
16.4
)
})

it('verify blowout settings indeterminate value', () => {
// Verify blowout settings indeterminate value
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Select blowout settings
@@ -295,9 +289,8 @@ describe('Advanced Settings for Mix Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify blowout settings batch editing in mix form', () => {
// Verify blowout settings batch editing in mix form
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Click on step 3 to batch edit mix settings
@@ -329,9 +322,8 @@ describe('Advanced Settings for Mix Form', () => {
const expectedSubstring = 'trashBin'
expect(value).to.include(expectedSubstring)
})
})

it('verify well-order indeterminate state', () => {
// verify well-order indeterminate state
// Click on step 2, to enter batch edit and click on well order to change the order
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// click on well-order and change the order
51 changes: 25 additions & 26 deletions protocol-designer/cypress/e2e/transferSettings.cy.js
Original file line number Diff line number Diff line change
@@ -50,7 +50,9 @@ describe('Advanced Settings for Transfer Form', () => {
openDesignTab()
})

it.only('Verify functionality of advanced settings with different pipette and labware', () => {
it('Verify functionality of the transfer form', () => {
// Verify functionality of advanced settings with different pipette and labware

enterBatchEdit()

// Different Pipette disbales aspirate and dispense Flowrate and Mix settings
@@ -84,9 +86,9 @@ describe('Advanced Settings for Transfer Form', () => {

// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('Verify functionality of advanced settings with same pipette and labware', () => {
// Verify functionality of advanced settings with same pipette and labware

// click on step 2 in batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// deselecting on step 6 in batch edit mode
@@ -125,9 +127,8 @@ describe('Advanced Settings for Transfer Form', () => {

// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify flowrate indeterminate value', () => {
// Verify flowrate indeterminate value
// click on step 2 in batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
cy.get('input[name="aspirate_flowRate"]').click({ force: true })
@@ -146,9 +147,9 @@ describe('Advanced Settings for Transfer Form', () => {

// indeterminate state in flowrate is empty
cy.get('input[name="aspirate_flowRate"]').should('have.value', '')
})

it('verify functionality of flowrate in batch edit transfer', () => {
// Verify functionality of flowrate in batch edit transfer

// Batch editing the Flowrate value
cy.get('input[name="aspirate_flowRate"]').click({ force: true })
cy.contains(
@@ -176,14 +177,13 @@ describe('Advanced Settings for Transfer Form', () => {

// Verify that flowrate value
cy.get('input[name="aspirate_flowRate"]').should('have.value', 100)
})

it('verify prewet tip indeterminate value', () => {
// Verify prewet tip indeterminate value
// Click on step 2, to enter batch edit and enable prewet tip
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// enable pre-wet tip
cy.togglePreWetTip()
cy.get('input[name="preWetTip"]').should('be.visible')
cy.get('input[name="preWetTip"]').should('be.enabled')
// Click save button to save the changes
cy.get('button').contains('save').click()
// Click on step 1, as it does not have prewet-tip selected - indeteminate state
@@ -196,9 +196,9 @@ describe('Advanced Settings for Transfer Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify mix settings indeterminate value', () => {
// Verify mix settings indeterminate value

// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_4"]').click(batchEditClickOptions)
// Select mix settings
@@ -217,9 +217,9 @@ describe('Advanced Settings for Transfer Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify mix settings batch editing in transfer form', () => {
// Verify mix settings batch editing in transfer form

// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Click on step 3 to batch edit mix settings
@@ -241,9 +241,9 @@ describe('Advanced Settings for Transfer Form', () => {
// Verify that volume is set to 10 and repetitions to 2
cy.get('input[name="aspirate_mix_volume"]').should('have.value', 10)
cy.get('input[name="aspirate_mix_times"]').should('have.value', 2)
})

it('verify delay settings indeterminate value', () => {
// Verify delay settings indeterminate value

// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Select delay settings
@@ -263,9 +263,9 @@ describe('Advanced Settings for Transfer Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify delay settings batch editing in transfer form', () => {
// Verify delay settings batch editing in transfer form

// Click on step 4, to enter batch edit mode
cy.get('[data-test="StepItem_4"]').click(batchEditClickOptions)
// Click on step 5 to batch edit mix settings
@@ -292,9 +292,9 @@ describe('Advanced Settings for Transfer Form', () => {

// Verify that volume is set to 2 and repitions to 2
cy.get('input[name="aspirate_delay_seconds"]').should('have.value', 2)
})

it('verify touchTip settings indeterminate value', () => {
// Verify touchTip settings indeterminate value

cy.get('[data-test="StepItem_2"]').click()
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
@@ -314,9 +314,9 @@ describe('Advanced Settings for Transfer Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify touchTip settings batch editing in transfer form', () => {
// verify touchTip settings batch editing in transfer form

// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Click on step 3 to batch edit mix settings
@@ -347,9 +347,8 @@ describe('Advanced Settings for Transfer Form', () => {
'have.value',
13.78
)
})

it('verify blowout settings indeterminate value', () => {
// verify blowout settings indeterminate value
// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Select blowout settings
@@ -367,9 +366,9 @@ describe('Advanced Settings for Transfer Form', () => {
)
// Exit batch edit mode
cy.get('button').contains('exit batch edit').click()
})

it('verify blowout settings batch editing in transfer form', () => {
// Verify blowout settings batch editing in transfer form

// Click on step 2, to enter batch edit mode
cy.get('[data-test="StepItem_2"]').click(batchEditClickOptions)
// Click on step 3 to batch edit mix settings

0 comments on commit e307b0d

Please sign in to comment.