File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,13 @@ describe("Edit Page", () => {
275
275
cy . get ( "select.file-select-dropdown" ) . select ( "example_data_XRD_example_bmb.xye" ) ;
276
276
cy . contains ( "label" , "X axis" ) . should ( "exist" ) ;
277
277
cy . contains ( "label" , "Y axis" ) . should ( "exist" ) ;
278
+
279
+ // Create a second data block and try to trigger the wavelength callback, making sure it only changes in one
280
+ cy . findByText ( "Add a block" ) . click ( ) ;
281
+ cy . get ( '[data-testid="add-block-dropdown"]' ) . findByText ( "Powder XRD" ) . click ( ) ;
282
+
283
+ cy . findByText ( "Select a file:" ) . should ( "exist" ) ;
284
+ cy . get ( "select.file-select-dropdown" ) . select ( "example_data_XRD_example_bmb.xye" ) ;
278
285
} ) ;
279
286
280
287
it ( "Uploads a fake PNG image, make a Media block and checks that the image is shown" , ( ) => {
You can’t perform that action at this time.
0 commit comments