Skip to content

Commit f0ec112

Browse files
committed
Temp
1 parent d517714 commit f0ec112

29 files changed

+483
-292
lines changed

cypress/e2e/app.cy.ts

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,25 @@ describe('/mock', () => {
99
});
1010

1111
it('visualize 1D dataset as Line', () => {
12-
cy.selectExplorerNode('nD_datasets');
12+
cy.selectExplorerNode('arrays');
1313
cy.selectExplorerNode('oneD');
1414

1515
cy.findByRole('tab', { name: 'Line' }).should(...BE_SELECTED);
1616
cy.findByRole('figure', { name: 'oneD' }).should('be.visible');
17-
cy.findByRole('heading', { name: 'nD_datasets / oneD' }).should(
18-
'be.visible',
19-
);
17+
cy.findByRole('heading', { name: 'arrays / oneD' }).should('be.visible');
2018

2119
if (Cypress.env('TAKE_SNAPSHOTS')) {
2220
cy.matchImageSnapshot('line_1D');
2321
}
2422
});
2523

2624
it('visualize 1D complex dataset as Line', () => {
27-
cy.selectExplorerNode('nD_datasets');
25+
cy.selectExplorerNode('arrays');
2826
cy.selectExplorerNode('oneD_cplx');
2927

3028
cy.findByRole('tab', { name: 'Line' }).should(...BE_SELECTED);
3129
cy.findByRole('figure', { name: 'oneD_cplx' }).should('be.visible');
32-
cy.findByRole('heading', { name: 'nD_datasets / oneD_cplx' }).should(
30+
cy.findByRole('heading', { name: 'arrays / oneD_cplx' }).should(
3331
'be.visible',
3432
);
3533

@@ -39,7 +37,7 @@ describe('/mock', () => {
3937
});
4038

4139
it('visualize 1D dataset as Matrix', () => {
42-
cy.selectExplorerNode('nD_datasets');
40+
cy.selectExplorerNode('arrays');
4341
cy.selectExplorerNode('oneD');
4442
cy.selectVisTab('Matrix');
4543

@@ -56,7 +54,7 @@ describe('/mock', () => {
5654
});
5755

5856
it('visualize 1D compound dataset', () => {
59-
cy.selectExplorerNode('nD_datasets');
57+
cy.selectExplorerNode('arrays');
6058
cy.selectExplorerNode('oneD_compound');
6159
cy.selectVisTab('Compound');
6260

@@ -73,14 +71,12 @@ describe('/mock', () => {
7371
});
7472

7573
it('visualize 2D dataset as Heatmap', () => {
76-
cy.selectExplorerNode('nD_datasets');
74+
cy.selectExplorerNode('arrays');
7775
cy.selectExplorerNode('twoD');
7876

7977
cy.findByRole('tab', { name: 'Heatmap' }).should(...BE_SELECTED);
8078
cy.findByRole('figure', { name: 'twoD' }).should('be.visible');
81-
cy.findByRole('heading', { name: 'nD_datasets / twoD' }).should(
82-
'be.visible',
83-
);
79+
cy.findByRole('heading', { name: 'arrays / twoD' }).should('be.visible');
8480

8581
if (Cypress.env('TAKE_SNAPSHOTS')) {
8682
cy.matchImageSnapshot('heatmap_2D');
@@ -96,14 +92,14 @@ describe('/mock', () => {
9692
});
9793

9894
it('visualize 2D complex dataset as Heatmap', () => {
99-
cy.selectExplorerNode('nD_datasets');
95+
cy.selectExplorerNode('arrays');
10096
cy.selectExplorerNode('twoD_cplx');
10197

10298
cy.findByRole('tab', { name: 'Heatmap' }).should(...BE_SELECTED);
10399
cy.findByRole('figure', { name: 'twoD_cplx (amplitude)' }).should(
104100
'be.visible',
105101
);
106-
cy.findByRole('heading', { name: 'nD_datasets / twoD_cplx' }).should(
102+
cy.findByRole('heading', { name: 'arrays / twoD_cplx' }).should(
107103
'be.visible',
108104
);
109105

@@ -113,7 +109,7 @@ describe('/mock', () => {
113109
});
114110

115111
it('visualize datasets with fill value', () => {
116-
cy.selectExplorerNode('nD_datasets');
112+
cy.selectExplorerNode('arrays');
117113

118114
cy.selectExplorerNode('oneD_fillvalue');
119115
cy.findByRole('figure', { name: 'oneD_fillvalue' }).should('be.visible');
@@ -131,7 +127,7 @@ describe('/mock', () => {
131127
});
132128

133129
it('map dimensions of 4D dataset when visualized as Heatmap', () => {
134-
cy.selectExplorerNode('nD_datasets');
130+
cy.selectExplorerNode('arrays');
135131
cy.selectExplorerNode('fourD');
136132

137133
cy.findByTitle('Number of elements in each dimension')
@@ -176,7 +172,7 @@ describe('/mock', () => {
176172
});
177173

178174
it('slice through 4D dataset when visualized as Heatmap', () => {
179-
cy.selectExplorerNode('nD_datasets');
175+
cy.selectExplorerNode('arrays');
180176
cy.selectExplorerNode('fourD');
181177

182178
cy.findByRole('figure', { name: 'fourD' }).as('vis').should('be.visible');
@@ -213,7 +209,7 @@ describe('/mock', () => {
213209
});
214210

215211
it('edit heatmap color map limits', () => {
216-
cy.selectExplorerNode('nD_datasets');
212+
cy.selectExplorerNode('arrays');
217213
cy.selectExplorerNode('twoD');
218214

219215
cy.findByRole('button', { name: 'Edit domain' })
@@ -257,12 +253,12 @@ describe('/mock', () => {
257253
});
258254

259255
it('visualize image dataset as RGB', () => {
260-
cy.selectExplorerNode('nD_datasets');
256+
cy.selectExplorerNode('arrays');
261257
cy.selectExplorerNode('threeD_rgb');
262258

263259
cy.findByRole('tab', { name: 'RGB' }).should(...BE_SELECTED);
264260
cy.findByRole('figure', { name: 'threeD_rgb' }).should('be.visible');
265-
cy.findByRole('heading', { name: 'nD_datasets / threeD_rgb' }).should(
261+
cy.findByRole('heading', { name: 'arrays / threeD_rgb' }).should(
266262
'be.visible',
267263
);
268264

packages/app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ to `'/'`.
111111

112112
```tsx
113113
<MockProvider>
114-
<App initialPath="/nD_datasets/threeD" />
114+
<App initialPath="/arrays/threeD" />
115115
</MockProvider>
116116
```
117117

@@ -480,7 +480,7 @@ visualization components (available in `@h5web/lib`).
480480

481481
```tsx
482482
function MyApp() {
483-
const entity = useEntity('/nD_datasets/twoD'); // ProvidedEntity
483+
const entity = useEntity('/arrays/twoD'); // ProvidedEntity
484484
assertDataset(entity); // Dataset
485485
assertArrayShape(entity); // Dataset<ArrayShape>
486486
assertFloatType(entity); // Dataset<ArrayShape, FloatType>

0 commit comments

Comments
 (0)