@opencloning/ui 1.1.0-test.3 → 1.1.0-test.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/package.json +3 -3
- package/src/components/index.js +1 -0
- package/src/components/primers/PrimerTableRow.cy.jsx +31 -18
- package/src/components/primers/PrimerTableRow.jsx +1 -1
- package/src/components/sources/PCRUnitForm.jsx +1 -1
- package/src/components/sources/SourceGenomeRegion.cy.jsx +24 -9
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @opencloning/ui
|
|
2
2
|
|
|
3
|
+
## 1.1.0-test.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6df1c20: Last dummy test to check if auto pre-release works
|
|
8
|
+
- Updated dependencies [6df1c20]
|
|
9
|
+
- @opencloning/store@1.1.0-test.5
|
|
10
|
+
- @opencloning/utils@1.1.0-test.5
|
|
11
|
+
|
|
12
|
+
## 1.1.0-dev.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 07106ac: Dummy change to test that new action works
|
|
17
|
+
- @opencloning/store@1.1.0-dev.4
|
|
18
|
+
- @opencloning/utils@1.1.0-dev.4
|
|
19
|
+
|
|
3
20
|
## 1.1.0-test.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencloning/ui",
|
|
3
|
-
"version": "1.1.0-test.
|
|
3
|
+
"version": "1.1.0-test.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@emotion/styled": "^11.14.0",
|
|
24
24
|
"@mui/icons-material": "^5.15.17",
|
|
25
25
|
"@mui/material": "^5.15.17",
|
|
26
|
-
"@opencloning/store": "1.1.0-test.
|
|
27
|
-
"@opencloning/utils": "1.1.0-test.
|
|
26
|
+
"@opencloning/store": "1.1.0-test.5",
|
|
27
|
+
"@opencloning/utils": "1.1.0-test.5",
|
|
28
28
|
"@teselagen/bio-parsers": "^0.4.32",
|
|
29
29
|
"@teselagen/ove": "^0.8.18",
|
|
30
30
|
"@teselagen/range-utils": "^0.3.13",
|
package/src/components/index.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PrimerTableRow from './PrimerTableRow';
|
|
3
3
|
import { mockPrimerDetails, mockPCRDetails, mockPrimer } from '../../../../../tests/mockPrimerDetailsData';
|
|
4
|
+
import { ConfigProvider } from '../../providers/ConfigProvider';
|
|
5
|
+
|
|
6
|
+
const config = {
|
|
7
|
+
backendUrl: 'http://127.0.0.1:8000',
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
describe('<PrimerTableRow />', () => {
|
|
6
11
|
it('displays the right information with PCR details', () => {
|
|
7
12
|
cy.mount(
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
<ConfigProvider config={config}>
|
|
14
|
+
<PrimerTableRow
|
|
15
|
+
primerDetails={mockPrimerDetails}
|
|
16
|
+
pcrDetails={mockPCRDetails}
|
|
17
|
+
/>
|
|
18
|
+
</ConfigProvider>,
|
|
12
19
|
);
|
|
13
20
|
|
|
14
21
|
cy.get('.name').should('contain', 'Test Primer');
|
|
@@ -19,10 +26,12 @@ describe('<PrimerTableRow />', () => {
|
|
|
19
26
|
});
|
|
20
27
|
it('displays the right information without PCR details', () => {
|
|
21
28
|
cy.mount(
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
<ConfigProvider config={config}>
|
|
30
|
+
<PrimerTableRow
|
|
31
|
+
primerDetails={mockPrimerDetails}
|
|
32
|
+
pcrDetails={[]}
|
|
33
|
+
/>
|
|
34
|
+
</ConfigProvider>,
|
|
26
35
|
);
|
|
27
36
|
cy.get('.melting-temperature').should('contain', '60');
|
|
28
37
|
cy.get('.gc-content').should('contain', '50');
|
|
@@ -30,10 +39,12 @@ describe('<PrimerTableRow />', () => {
|
|
|
30
39
|
});
|
|
31
40
|
it('shows skeletons when info missing', () => {
|
|
32
41
|
cy.mount(
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
<ConfigProvider config={config}>
|
|
43
|
+
<PrimerTableRow
|
|
44
|
+
primerDetails={mockPrimer}
|
|
45
|
+
pcrDetails={[]}
|
|
46
|
+
/>
|
|
47
|
+
</ConfigProvider>,
|
|
37
48
|
);
|
|
38
49
|
cy.get('.melting-temperature .MuiSkeleton-root').should('exist');
|
|
39
50
|
cy.get('.gc-content .MuiSkeleton-root').should('exist');
|
|
@@ -43,12 +54,14 @@ describe('<PrimerTableRow />', () => {
|
|
|
43
54
|
// but if we mistakenly test for bool and the value is 0, nothing will show.
|
|
44
55
|
// This test is to make sure that we are testing for undefined instead of bool.
|
|
45
56
|
cy.mount(
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
<ConfigProvider config={config}>
|
|
58
|
+
<PrimerTableRow
|
|
59
|
+
primerDetails={{ ...mockPrimerDetails, melting_temperature: 0, gc_content: 0, length: 0 }}
|
|
60
|
+
pcrDetails={[
|
|
61
|
+
{ ...mockPCRDetails[0], fwdPrimer: { ...mockPCRDetails[0].fwdPrimer, melting_temperature: 0, gc_content: 0, length: 0 } },
|
|
62
|
+
]}
|
|
63
|
+
/>
|
|
64
|
+
</ConfigProvider>,
|
|
52
65
|
);
|
|
53
66
|
cy.get('.melting-temperature').should('contain', '0 (0)');
|
|
54
67
|
cy.get('.gc-content').should('contain', '0 (0)');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconButton, Tooltip } from '@mui/material';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { Delete as DeleteIcon, Edit as EditIcon,
|
|
3
|
+
import { Delete as DeleteIcon, Edit as EditIcon, Clear as ClearIcon } from '@mui/icons-material';
|
|
4
4
|
import SubmitToDatabaseDialog from '../form/SubmitToDatabaseDialog';
|
|
5
5
|
import useDatabase from '../../hooks/useDatabase';
|
|
6
6
|
import PrimerDetailsTds from './primer_details/PrimerDetailsTds';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accordion, AccordionDetails, AccordionSummary, FormControl, InputLabel, ListItemText, MenuItem, Select, Tooltip } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useDispatch } from 'react-redux';
|
|
4
|
-
import {
|
|
4
|
+
import { ExpandMore as ExpandMoreIcon, Cancel as CancelIcon } from '@mui/icons-material';
|
|
5
5
|
import { cloningActions } from '@opencloning/store/cloning';
|
|
6
6
|
import SingleInputSelector from './SingleInputSelector';
|
|
7
7
|
import SelectPrimerForm from '../primers/SelectPrimerForm';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AssemblyIdSelector, SpeciesPicker, SequenceAccessionPicker, } from './SourceGenomeRegion';
|
|
3
|
+
import { ConfigProvider } from '../../providers/ConfigProvider';
|
|
4
|
+
|
|
5
|
+
const config = {
|
|
6
|
+
backendUrl: 'http://127.0.0.1:8000',
|
|
7
|
+
};
|
|
3
8
|
|
|
4
9
|
describe('<AssemblyIdSelector />', () => {
|
|
5
10
|
it('can propose a paired accession if the assembly has no annotation', () => {
|
|
@@ -43,11 +48,13 @@ describe('<AssemblyIdSelector />', () => {
|
|
|
43
48
|
}).as('getPairedAssemblyInfo');
|
|
44
49
|
|
|
45
50
|
cy.mount(
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
<ConfigProvider config={config}>
|
|
52
|
+
<AssemblyIdSelector
|
|
53
|
+
setAssemblyId={setAssemblyId}
|
|
54
|
+
setHasAnnotation={setHasAnnotation}
|
|
55
|
+
onAssemblyIdChange={onAssemblyIdChange}
|
|
56
|
+
/>
|
|
57
|
+
</ConfigProvider>
|
|
51
58
|
);
|
|
52
59
|
cy.get('input').type('GCA_000002945.3');
|
|
53
60
|
cy.wait('@getAssemblyInfo');
|
|
@@ -62,7 +69,9 @@ describe('<AssemblyIdSelector />', () => {
|
|
|
62
69
|
}).as('getAssemblyInfo');
|
|
63
70
|
|
|
64
71
|
cy.mount(
|
|
65
|
-
<
|
|
72
|
+
<ConfigProvider config={config}>
|
|
73
|
+
<AssemblyIdSelector setAssemblyId={cy.spy()} setHasAnnotation={cy.spy()} onAssemblyIdChange={cy.spy()} />
|
|
74
|
+
</ConfigProvider>
|
|
66
75
|
);
|
|
67
76
|
cy.get('input').type('GCA_000002945.3', { delay: 0});
|
|
68
77
|
cy.wait('@getAssemblyInfo');
|
|
@@ -76,7 +85,9 @@ describe('<SpeciesPicker />', () => {
|
|
|
76
85
|
const setAssemblyId = cy.spy().as('setAssemblyId');
|
|
77
86
|
|
|
78
87
|
cy.mount(
|
|
79
|
-
<
|
|
88
|
+
<ConfigProvider config={config}>
|
|
89
|
+
<SpeciesPicker setSpecies={setSpecies} setAssemblyId={setAssemblyId} />
|
|
90
|
+
</ConfigProvider>
|
|
80
91
|
);
|
|
81
92
|
cy.intercept('GET', 'https://api.ncbi.nlm.nih.gov/datasets/v2alpha/taxonomy/taxon_suggest/**', {
|
|
82
93
|
statusCode: 500,
|
|
@@ -101,7 +112,9 @@ describe('<SequenceAccessionPicker />', () => {
|
|
|
101
112
|
}).as('getSequenceReports');
|
|
102
113
|
|
|
103
114
|
cy.mount(
|
|
104
|
-
<
|
|
115
|
+
<ConfigProvider config={config}>
|
|
116
|
+
<SequenceAccessionPicker assemblyAccession={assemblyAccession} sequenceAccession={''} setSequenceAccession={setSequenceAccession} />
|
|
117
|
+
</ConfigProvider>
|
|
105
118
|
);
|
|
106
119
|
cy.contains('Could not load chromosomes').should('exist');
|
|
107
120
|
});
|
|
@@ -115,7 +128,9 @@ describe('<SequenceAccessionPicker />', () => {
|
|
|
115
128
|
}).as('getSequenceReports');
|
|
116
129
|
|
|
117
130
|
cy.mount(
|
|
118
|
-
<
|
|
131
|
+
<ConfigProvider config={config}>
|
|
132
|
+
<SequenceAccessionPicker assemblyAccession={assemblyAccession} setSequenceAccession={setSequenceAccession} />
|
|
133
|
+
</ConfigProvider>
|
|
119
134
|
);
|
|
120
135
|
cy.wait('@getSequenceReports');
|
|
121
136
|
cy.get('label').siblings('div').first().click();
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Version placeholder - replaced at publish time via prepack script
|
|
2
|
-
export const version = "1.1.0-test.
|
|
2
|
+
export const version = "1.1.0-test.5";
|