Skip to content

Commit

Permalink
import button sentence casing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamelers committed Jun 29, 2023
1 parent 4758bca commit 44fbd9e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function PrelimArticle({
}}
disabled={(acText === '' || formRef?.current?.values.primary_article_doi === '')}
>
Import Article Metadata
Import article metadata
</button>
</div>
<div id="population-warnings" className="o-metadata__autopopulate-message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function PrelimManu({
}}
disabled={(acText === '' || acID === '' || formRef?.current?.values.msId === '')}
>
Import Manuscript Metadata
Import manuscript metadata
</button>
</div>
<div id="population-warnings" className="o-metadata__autopopulate-message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
xit "gives message when journal isn't selected" do
find('input[value="manuscript"]').click
fill_manuscript_info(name: 'European Journal of Plant Pathology', issn: nil, msid: nil)
click_button 'Import Manuscript Metadata'
click_button 'Import manuscript metadata'
expect(page.find('div#population-warnings')).to have_content('Please select your journal from the autocomplete drop-down list')
end

it 'gives disable submit manuscript not filled' do
choose('a manuscript in progress', allow_label_click: true)
expect(page).to have_button('Import Manuscript Metadata', disabled: true)
expect(page).to have_button('Import manuscript metadata', disabled: true)
end

end
Expand Down Expand Up @@ -68,7 +68,7 @@
journal = ''
doi = ''
fill_crossref_info(name: journal, doi: doi)
expect(page).to have_button('Import Article Metadata', disabled: true)
expect(page).to have_button('Import article metadata', disabled: true)
end

it "gives a message when it can't find a doi" do
Expand Down Expand Up @@ -97,7 +97,7 @@ def click_import_article_metadata
# so we force it here.
page.execute_script("$('#do_import').val('true')")

click_button 'Import Article Metadata'
click_button 'Import article metadata'
end

end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('PrelimArticle', () => {

userEvent.tab(); // tab out of element, should trigger save on blur

await waitFor(() => expect(screen.getByText('Import Article Metadata')).toHaveFocus());
await waitFor(() => expect(screen.getByText('Import article metadata')).toHaveFocus());
await waitFor(() => promise); // waits for the axios promise to fulfil
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('PrelimManu', () => {

userEvent.tab(); // tab out of element, should trigger save on blur

await waitFor(() => expect(screen.getByText('Import Manuscript Metadata')).toHaveFocus());
await waitFor(() => expect(screen.getByText('Import manuscript metadata')).toHaveFocus());
await waitFor(() => promise); // waits for the axios promise to fulfil
})

Expand Down

0 comments on commit 44fbd9e

Please sign in to comment.