-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'i488-cklibrary' of github.com:pulibrary/pdc_describe in…
…to i488-cklibrary
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# frozen_string_literal: true | ||
require "rails_helper" | ||
|
||
RSpec.describe "Form submission for migrating attention", type: :system, mock_ezid_api: true, js: true do | ||
let(:user) { FactoryBot.create(:research_data_moderator) } | ||
let(:title) { "Attention and awareness in the dorsal attention network" } | ||
let(:description) do | ||
"The attention schema theory (AST) posits a specific relationship between subjective awareness and attention, in which awareness is the control model that the brain uses to aid in the endogenous control of attention. We proposed that the right temporoparietal junction (TPJ) is involved in that interaction between awareness and attention. In previous experiments, we developed a behavioral paradigm in human subjects to manipulate awareness and attention. The paradigm involved a visual cue that could be used to guide a shift of attention to a target stimulus. In task 1, subjects were aware of the visual cue, and their endogenous control mechanism was able to use the cue to help control attention. In task 2, subjects were unaware of the visual cue, and their endogenous control mechanism was no longer able to use it to control attention, even though the cue still had a measurable effect on other aspects of behavior. Here we tested the two tasks while scanning brain activity in human volunteers. We predicted that the right TPJ would be active in relation to the cue in task 1, but not in task 2. This prediction was confirmed. The right TPJ was active in relation to the cue in task 1; it was not measurably active in task 2; the difference was significant. In our interpretation, the right TPJ is involved in a complex interaction in which awareness aids in the control of attention. This dataset contains structural and functional MRI images from human subjects learning to use subliminal and superliminal stimuli to perform a Posner-like reaction time task. Download the README.txt file for a detailed description of this dataset's content | ||
This dataset is too large to download directly from this item page. You can access and download the data via Globus at this link:https://app.globus.org/file-manager?origin_id=dc43f461-0ca7-4203-848c-33a9fc00a464&origin_path=%2F9425-b553%2F (See https://docs.globus.org/how-to/get-started/ for instructions on how to use Globus, sign-in is required)." | ||
end | ||
let(:ark) { "ark:/88435/dsp01xp68kk27p" } | ||
let(:collection) { "Research Data" } | ||
let(:publisher) { "Princeton University" } | ||
let(:doi) { "10.34770/9425-b553" } | ||
|
||
before do | ||
page.driver.browser.manage.window.resize_to(2000, 2000) | ||
stub_datacite(host: "api.datacite.org", body: datacite_register_body(prefix: "10.34770")) | ||
stub_request(:get, "https://handle.stage.datacite.org/10.34770/9425-b553") | ||
.to_return(status: 200, body: "", headers: {}) | ||
stub_s3 | ||
end | ||
context "migrate record from dataspace" do | ||
it "produces and saves a valid datacite record" do | ||
sign_in user | ||
visit "/works/new" | ||
fill_in "title_main", with: title | ||
fill_in "description", with: description | ||
find("#rights_identifier").find(:xpath, "option[2]").select_option | ||
fill_in "given_name_1", with: "Andrew" | ||
fill_in "family_name_1", with: "Wilterson" | ||
click_on "Add Another Creator" | ||
fill_in "given_name_2", with: "Samuel" | ||
fill_in "family_name_2", with: "Nastase" | ||
click_on "Add Another Creator" | ||
fill_in "given_name_3", with: "Branden" | ||
fill_in "family_name_3", with: "Bio" | ||
click_on "Add Another Creator" | ||
fill_in "given_name_4", with: "Arvid" | ||
fill_in "family_name_4", with: "Guterstam" | ||
click_on "Add Another Creator" | ||
fill_in "given_name_5", with: "Michael" | ||
fill_in "family_name_5", with: "Graziano" | ||
click_on "v-pills-additional-tab" | ||
fill_in "publisher", with: publisher | ||
fill_in "publication_year", with: 2020 | ||
find("#collection_id").find(:xpath, "option[1]").select_option | ||
click_on "v-pills-curator-controlled-tab" | ||
fill_in "doi", with: doi | ||
fill_in "ark", with: ark | ||
click_on "Create" | ||
expect(page).to have_content "marked as draft" | ||
attention_work = Work.last | ||
expect(attention_work.title).to eq title | ||
end | ||
end | ||
end |