diff --git a/e2e/spec/news.spec.e2e.ts b/e2e/spec/news.spec.e2e.ts index 31b03ab7..9d640e37 100644 --- a/e2e/spec/news.spec.e2e.ts +++ b/e2e/spec/news.spec.e2e.ts @@ -12,7 +12,7 @@ Scenario('should open a news page and show news sources', async ({ I, newsPage: I.see('Pick a news source', newsPage.bannerHeadline); }); -Scenario.skip('should open an article page from a direct link', async ({ I, newsPage: newsPage }) => { +Scenario('should open an article page from a direct link', async ({ I, newsPage: newsPage }) => { I.amOnPage(newsPage.url.main); I.waitInUrl(newsPage.url.main, 10); I.waitForElement(newsPage.newsSources, 10); @@ -29,8 +29,9 @@ Scenario.skip('should open an article page from a direct link', async ({ I, news const firstNewsSourceArticleHref = await I.grabAttributeFrom(newsPage.firstNewsSourceArticle, 'href'); I.click(newsPage.firstNewsSourceArticle); + I.wait(3); I.switchToNextTab(); - I.waitInUrl(firstNewsSourceArticleHref.replace(/https?/, ''), 10); + I.waitInUrl(firstNewsSourceArticleHref, 10); I.switchToPreviousTab(); I.seeInCurrentUrl(lastNewsSourceLinkHref); I.closeOtherTabs(); diff --git a/registry/package.json b/registry/package.json index c2e469e5..46a01cc3 100644 --- a/registry/package.json +++ b/registry/package.json @@ -8,7 +8,7 @@ "compile": "tsc --incremental", "dev": "nodemon -e ts,json5 --exec \"npx tsc --incremental && dotenv -- npm run start\" ", "build": "npm run compile && cd ./client && npm run build", - "start": "node -r source-map-support/register ./build/server/index.js", + "start": "dotenv -- node -r source-map-support/register ./build/server/index.js", "start-docker": "npm run migrate && npm start", "knex": "knex", "migrate": "dotenv -- knex --knexfile config/knexfile.ts migrate:latest", diff --git a/registry/tests/routerDomains.spec.ts b/registry/tests/routerDomains.spec.ts index 30d29aa9..c3424bc2 100644 --- a/registry/tests/routerDomains.spec.ts +++ b/registry/tests/routerDomains.spec.ts @@ -156,14 +156,11 @@ describe(`Tests ${example.url}`, () => { domainName: `domainNameCorrect${i}.com`, })); - const promises = routerDomainsList.map(async (data) => { - const { body } = await req.post(example.url).send(data).expect(200); - data.id = body.id; - }); - try { - await Promise.all(promises); - routerDomainsList.sort((a, b) => a.id! - b.id!); + for (const data of routerDomainsList) { + const { body } = await req.post(example.url).send(data).expect(200); + data.id = body.id; + } const responseFetching01 = await req.get( `${example.url}?range=${encodeURIComponent(`[${rangeStart + 0},${rangeStart + 1}]`)}`,