Skip to content

Commit

Permalink
Improve action text
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig authored and corneliusroemer committed Oct 17, 2024
1 parent 8269d83 commit ac63762
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions website/src/components/SearchPage/SeqPreviewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ const DownloadButton: React.FC<DownloadButtonProps> = ({ seqId }: { seqId: strin
<button className={BUTTONCLASS}>
<IcBaselineDownload className='w-6 h-6' />
</button>
<ul className='dropdown-content z-20 menu p-1 shadow bg-base-100 rounded-btn absolute top-full -left-4'>
<ul className='dropdown-content z-20 menu p-1 shadow bg-base-100 rounded-btn absolute top-full w-52 -left-32'>
<li>
<a href={routes.sequenceEntryFastaPage(seqId, true)} className='block px-4 py-2 hover:bg-gray-100'>
FASTA
Download FASTA
</a>
</li>
<li>
<a href={routes.sequenceEntryTsvPage(seqId, true)} className='block px-4 py-2 hover:bg-gray-100'>
Metadata TSV
Download metadata TSV
</a>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions website/tests/pages/sequences/accession.fa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test.describe('The sequence.fa page', () => {
test('can load and show fasta file', async () => {
const testSequences = getTestSequences();

const url = `${baseUrl}${routes.sequencesFastaPage(testSequences.testSequenceEntry)}`;
const url = `${baseUrl}${routes.sequenceEntryFastaPage(testSequences.testSequenceEntry)}`;
const response = await fetch(url);
const content = await response.text();
expect(content).toBe(
Expand All @@ -18,7 +18,7 @@ test.describe('The sequence.fa page', () => {
test('can download fasta file', async () => {
const testSequences = getTestSequences();

const downloadUrl = `${baseUrl}${routes.sequencesFastaPage(testSequences.testSequenceEntry, true)}`;
const downloadUrl = `${baseUrl}${routes.sequenceEntryFastaPage(testSequences.testSequenceEntry, true)}`;
const response = await fetch(downloadUrl);
const contentDisposition = response.headers.get('Content-Disposition');

Expand Down
2 changes: 1 addition & 1 deletion website/tests/pages/sequences/accession.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ test.describe('The detailed sequence page', () => {
await expect(linkToDeprecatedVersion).toBeVisible();
await linkToDeprecatedVersion.click();

await sequencePage.page.waitForURL(baseUrl + routes.sequencesDetailsPage(deprecatedVersionString));
await sequencePage.page.waitForURL(baseUrl + routes.sequenceEntryDetailsPage(deprecatedVersionString));
});
});
2 changes: 1 addition & 1 deletion website/tests/pages/sequences/sequences.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class SequencePage {
}

public async goto(accessionVersion: AccessionVersion) {
await this.page.goto(`${baseUrl}${routes.sequencesDetailsPage(accessionVersion)}`);
await this.page.goto(`${baseUrl}${routes.sequenceEntryDetailsPage(accessionVersion)}`);
await expect(this.page).toHaveTitle(new RegExp(`^${getAccessionVersionString(accessionVersion)}`));
}

Expand Down

0 comments on commit ac63762

Please sign in to comment.