Added proper save assert instead of checking on the route

This commit is contained in:
Zeegaan
2022-10-18 11:18:05 +02:00
parent 2903d58ab3
commit 21e6cf36e7

View File

@@ -30,11 +30,9 @@ test.describe('Relation Types', () => {
await page.selectOption('select[name="relationType-child"]', {label: "Media"});
await form.locator('[name="relationType-isdependency"]').last().click({force: true});
await form.locator('.btn-primary').click();
await umbracoUi.clickElement(umbracoUi.getButtonByLabelKey(ConstantHelper.buttons.save))
await umbracoUi.isSuccessNotificationVisible();
await page.waitForNavigation();
expect(page.url()).toContain("#/settings/relationTypes/edit/");
//Clean up
await umbracoApi.relationTypes.ensureNameNotExists(name);
});