Skip to content

Commit

Permalink
Update test to use auto-retrying assertions
Browse files Browse the repository at this point in the history
Co-authored-by: hallieswan <[email protected]>
  • Loading branch information
sagely1 and hallieswan authored Dec 5, 2023
1 parent a9d6f15 commit fc5a901
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/gene-resources.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ test.describe('specific viewport block', () => {

// expect link named 'Visit AMP-PD'
const link = page.getByRole('link', { name: 'Visit AMP-PD' });
expect(await link.innerText()).toBe('Visit AMP-PD');
await expect(link).toHaveText('Visit AMP-PD');

// expect url to have ensembleid
const url = await link.getAttribute('href');
expect(url).toBe('https://target-explorer.amp-pd.org/genes/target-search?gene=ENSG00000178209');
await expect(link).toHaveAttribute('href', 'https://target-explorer.amp-pd.org/genes/target-search?gene=ENSG00000178209');
});
});

0 comments on commit fc5a901

Please sign in to comment.