Skip to content

Commit

Permalink
feat: Update move experiment test with correct workspace and project …
Browse files Browse the repository at this point in the history
…names.
  • Loading branch information
thiagodallacqua-hpe committed Oct 18, 2024
1 parent 7a1644e commit 397c7d7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions webui/react/src/e2e/tests/experimentList.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,23 +607,21 @@ test.describe('Experiment List', () => {
await backgroundApiWorkspace.deleteWorkspace(destinationWorkspace.id);
});

test('move experiment', async () => {
test('move experiment', async ({ newWorkspace: { response: { workspace } } }) => {
if (experimentId === undefined) return;

const newExperimentRow = await projectDetailsPage.f_experimentList.dataGrid.getRowByColumnValue('ID', experimentId.toString());

const menuMove = await newExperimentRow.experimentActionDropdown.open();
console.log(destinationProject.workspaceName)

await menuMove.menuItem('Move').pwLocator.click();
await menuMove.moveModal.destinationWorkspace.pwLocator.fill(destinationProject.workspaceName ?? '');
await menuMove.moveModal.destinationWorkspace.pwLocator.fill(workspace.name);
await menuMove.moveModal.destinationWorkspace.selectMenuOption(workspace.name);
await menuMove.moveModal.destinationProject.pwLocator.waitFor({ state: 'visible' });
await menuMove.moveModal.destinationProject.pwLocator.fill(destinationProject.name);
await menuMove.moveModal.destinationWorkspace.selectMenuOption(destinationProject.name);
await menuMove.moveModal.footer.submit.pwLocator.click();
// TODO: check why it's failing on submit (somehow the check bellow isn' passing)
/**
* const handleSubmit = async () => {
if (workspaceId === sourceWorkspaceId && projectId === sourceProjectId) {
*/
await menuMove.moveModal.pwLocator.waitFor({ state: 'hidden' });

await newExperimentRow.pwLocator.waitFor({ state: 'hidden' });
Expand Down

0 comments on commit 397c7d7

Please sign in to comment.