Skip to content

Commit

Permalink
local host not updated yet
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoel42 committed Dec 18, 2024
1 parent 6300eaa commit 2ccb2de
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocol-designer/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'https://sandbox.designer.opentrons.com/[email protected]',
baseUrl: 'http://localhost:5178',
},
})
27 changes: 26 additions & 1 deletion protocol-designer/cypress/e2e/transferSettings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ describe('Happy Path Transfer Tests', () => {
it('It should verify the working function of every permutation of transfer checkboxes', () => {

cy.visit('/'); // Replace with the appropriate URL or navigation
/*
cy.verifyHomePage(); // This calls the custom command from commands.ts
cy.clickCreateNew()
/
cy.robotSelection(Flex_Home)
function putPipette(pipette) {
cy.contains('label', pipette).should('exist').and('be.visible').click()
Expand Down Expand Up @@ -83,9 +86,31 @@ describe('Happy Path Transfer Tests', () => {
cy.contains('Well plates').click()
cy.contains('Armadillo 96 Well Plate 200 µL PCR Full Skirt').click()
cy.get('[data-testid="Toolbox_confirmButton"]').click({ force: true })
cy.contains('foreignObject[x="164"][y="107"]', 'Edit slot').click({force:true})
cy.get('foreignObject[x="164"][y="107"]')
.find('.Box-sc-8ozbhb-0.kIDovv')
.find('a[role="button"]')
.contains('Edit slot')
.click({force:true})
cy.contains('button', 'Add liquid').click()
cy.contains('button', 'Liquid').click()
cy.contains('button', 'Define a liquid').click()
cy.get('input[name="name"]') // Select the input with name="name"
.type('My liquid!')
cy.get('button[type="submit"]').contains('Save').click();
//cy.contains('button','Save').click()
/*
cy.get('foreignObject[x="164"][y="107"]') // Select the <foreignObject> with specific attributes
.find('.Box-sc-8ozbhb-0.kIDovv') // Find the parent <div> inside it
.find('a[role="button"]') // Find the <a> element acting as a button
.contains('Edit slot') // Ensure it contains the text "Edit slot"
.click()
*/

//cy.contains('foreignObject[x="164"][y="107"]', 'Edit slot').click({force:true})

Check failure on line 115 in protocol-designer/cypress/e2e/transferSettings.cy.js

View workflow job for this annotation

GitHub Actions / js checks

Expected space or tab after '//' in comment

Expand Down

0 comments on commit 2ccb2de

Please sign in to comment.