Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions e2e/specs/openConceptLab.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,26 @@ test.beforeEach(async ({ api }) => {
test('should be able to setup a subscription and import concepts', async ({ page }) => {
const openConceptLabPage = new OpenConceptLabPage(page);

// Setup the subscription
await openConceptLabPage.goto();
await openConceptLabPage.addOclSubscription();
await test.step('When I setup the subscription', async () => {
await openConceptLabPage.goto();
await openConceptLabPage.addOclSubscription();
});

// Start an Import
await openConceptLabPage.importTab().click();
await openConceptLabPage.startImport();
await test.step('And I starts an import', async () => {
await openConceptLabPage.importTab().click();
await openConceptLabPage.startImport();
});

// Check results of the import
await openConceptLabPage.goto();
await openConceptLabPage.previousImportsTab().click();
await expect(openConceptLabPage.previousImportsTable()).toHaveText(/\d+ items fetched/);
await test.step('Then the import results should appear in the test report', async () => {
await openConceptLabPage.goto();
await openConceptLabPage.previousImportsTab().click();
await expect(openConceptLabPage.previousImportsTable()).toHaveText(/\d+ items fetched/);
});

// Unsubscribe
await openConceptLabPage.subscriptionTab().click();
await openConceptLabPage.unsubscribe();
await test.step('And I unsubscribes', async () => {
await openConceptLabPage.subscriptionTab().click();
await openConceptLabPage.unsubscribe();
});
});

test.afterEach(async ({ api }) => {
Expand Down