Skip to content

Commit

Permalink
test(workspace): fix functional test to work with the new tutorial pr…
Browse files Browse the repository at this point in the history
…oject
  • Loading branch information
brusherru committed Apr 3, 2019
1 parent 11504fb commit 9422b0f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ it('deletes an open patch', async () => {
await patchGroup.clickOnTrigger();
assert.isTrue(await patchGroup.isExpanded(), 'patch group is open');

const patchGroupItem = await patchGroup.findPatchGroupItem('01-hello');
const patchGroupItem = await patchGroup.findPatchGroupItem('100-hardware');
await patchGroupItem.click();
assert.isTrue(await patchGroupItem.isSelected(), 'patch is selected');

Expand All @@ -28,10 +28,13 @@ it('deletes an open patch', async () => {
assert.equal(await popup.getTitle(), 'Delete the patch');
await popup.clickConfirm();

assert.isNull(await EditorTab.findByName(page, '01-hello'), 'tab is closed');
assert.isNull(
await EditorTab.findByName(page, '100-hardware'),
'tab is closed'
);

assert.isNull(
await patchGroup.findPatchGroupItem('01-hello'),
await patchGroup.findPatchGroupItem('100-hardware'),
'patch is not available in project browser'
);
});

0 comments on commit 9422b0f

Please sign in to comment.