Skip to content

Commit

Permalink
update cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b-cooper committed Nov 9, 2023
1 parent 42697e8 commit bf31b0d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,26 +184,6 @@ context('Tubes and Rack', () => {
'exist'
)

// Test pipette
cy.contains('Test Pipette is a required field').should('exist')
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
cy.get('label')
.contains('Test Pipette')
.children()
.first()
.trigger('mousedown')
cy.get('*[class^="Dropdown__option_label"]')
.contains(/P20.*Single-Channel.*GEN2/)
.click()
cy.contains('Test Pipette is a required field').should('not.exist')

// All fields present
cy.get('button[class*="_export_button_"]').click({ force: true })
cy.contains(
'Please resolve all invalid fields in order to export the labware definition'
).should('not.exist')
})

it('should export a file matching the fixture', () => {
cy.fixture(expectedExportFixture).then(expectedExportLabwareDef => {
cy.get('button').contains('EXPORT FILE').click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,6 @@ context('File Import', () => {
cy.get("input[placeholder='TestPro 15 Well Plate 5 µL']").should('exist')
cy.get("input[placeholder='testpro_15_wellplate_5ul']").should('exist')

// Test pipette
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
cy.get('label')
.contains('Test Pipette')
.children()
.first()
.trigger('mousedown')
cy.get('*[class^="Dropdown__option_label"]')
.contains(/P10.*Single-Channel.*GEN1/)
.click()

// All fields present
cy.get('button[class*="_export_button_"]').click({ force: true })
cy.contains(
'Please resolve all invalid fields in order to export the labware definition'
).should('not.exist')

cy.window()
.its('__lastSavedBlobZip__')
.should('be.a', 'blob') // wait until we get the blob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,19 +238,6 @@ context('Well Plates', () => {
'exist'
)

// Test pipette
cy.contains('Test Pipette is a required field').should('exist')
// TODO(IL, 2021-05-15): give Dropdown component semantic selectors for E2E
cy.get('label')
.contains('Test Pipette')
.children()
.first()
.trigger('mousedown')
cy.get('*[class^="Dropdown__option_label"]')
.contains(/P10.*Single-Channel.*GEN1/)
.click()
cy.contains('Test Pipette is a required field').should('not.exist')

// All fields present
cy.get('button[class*="_export_button_"]').click({ force: true })
cy.contains(
Expand Down

0 comments on commit bf31b0d

Please sign in to comment.