Skip to content

Commit

Permalink
Fixed tests as locator changed due to index in molecules sub-form
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Jul 25, 2022
1 parent d8b2c4d commit 422b18c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions apps/haddock3-download/integration-tests/molecules.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ test.describe('given 1 molecule and a flexref node with seg parameter defined',
await page.locator('select').selectOption('http://localhost:3000/catalog/haddock3.expert.yaml')
// Click button:has-text("Global parameters")
await page.locator('button:has-text("Global parameters")').click()
// Click text=Input MoleculesThe input molecules that will be used for docking.* >> input[type="file"]
await page.locator('text=Input MoleculesThe input molecules that will be used for docking.* >> input[type="file"]').click()
// Upload e2a-hpr_1GGR.pdb
const file1 = await readFile('./integration-tests/data/e2a-hpr_1GGR.pdb')
await page.locator('text=Input MoleculesThe input molecules that will be used for docking.* >> input[type="file"]')
await page.locator('text=0* >> input[type="file"]')
.setInputFiles({ name: 'e2a-hpr_1GGR.pdb', mimeType: 'chemical/x-pdb', buffer: file1 })
// Click input[type="text"]
await page.locator('input[type="text"]').click()
Expand Down
3 changes: 2 additions & 1 deletion apps/haddock3-download/integration-tests/topoaamol.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ test.describe('given 1 molecule and a topoaa node with segment id defined', () =
await page.locator('input[type="text"]').fill('x')
// Upload e2a-hpr_1GGR.pdb
const file1 = await readFile('./integration-tests/data/e2a-hpr_1GGR.pdb')
await page.locator('text=Input MoleculesThe input molecules that will be used for docking.* >> input[type="file"]')
await page.locator('text=0* >> input[type="file"]')
.setInputFiles({ name: 'e2a-hpr_1GGR.pdb', mimeType: 'chemical/x-pdb', buffer: file1 })
// Click text=Submit
await page.locator('text=Submit').click()
// Click text=Cancel
await page.locator('button:has-text("Cancel")').click()
// Click button:has-text("topoaa")
await page.locator('button:has-text("topoaa")').click()

// Click #expander4molecule svg
await page.locator('#expander4molecule svg').click()
// Click #expander4input_molecules svg
Expand Down

0 comments on commit 422b18c

Please sign in to comment.