Skip to content

Commit 9c1602b

Browse files
committed
Stub test for event
1 parent d7d0323 commit 9c1602b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

webapp/cypress/e2e/editPage.cy.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,13 @@ describe("Edit Page", () => {
275275
cy.get("select.file-select-dropdown").select("example_data_XRD_example_bmb.xye");
276276
cy.contains("label", "X axis").should("exist");
277277
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");
278285
});
279286

280287
it("Uploads a fake PNG image, make a Media block and checks that the image is shown", () => {

0 commit comments

Comments
 (0)