-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/rebase-codecept-e2e-e2447' into 'master'
Rebase codecept e2e engine#2447 See merge request minds/front!2118
- Loading branch information
Showing
66 changed files
with
4,937 additions
and
7,993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/fermium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
require('ts-node/register'); | ||
|
||
import { setHeadlessWhen, setCommonPlugins } from '@codeceptjs/configure'; | ||
// turn on headless mode when running with HEADLESS=true environment variable | ||
// export HEADLESS=true && npx codeceptjs run | ||
setHeadlessWhen(process.env.HEADLESS); | ||
|
||
// enable all common plugins https://github.com/codeceptjs/configure#setcommonplugins | ||
setCommonPlugins(); | ||
|
||
require('dotenv').config(); | ||
|
||
type CustomMainConfig = Omit<CodeceptJS.MainConfig, 'gherkin'> & { | ||
gherkin: { | ||
features: string | Array<string>; | ||
steps: string | Array<string>; | ||
}; | ||
}; | ||
|
||
export const config: CustomMainConfig = { | ||
tests: './steps/*-steps.ts', | ||
output: './error-screenshots', | ||
helpers: { | ||
Playwright: { | ||
url: process.env.E2E_DOMAIN || 'https://minds.com/', | ||
show: true, | ||
video: true, | ||
browser: 'chromium', | ||
restart: 'session', | ||
keepCookies: true, | ||
keepBrowserState: true, | ||
waitForNavigation: 'domcontentloaded', | ||
timeout: 10000, | ||
waitForTimeout: 10000, | ||
trace: true, | ||
}, | ||
CookieHelper: { | ||
require: './helpers/cookie-helper.ts', | ||
}, | ||
CommonHelper: { | ||
require: './helpers/common-helper.ts', | ||
}, | ||
}, | ||
include: { | ||
// pages | ||
activityFeedPage: './pages/activityFeedPage.ts', | ||
boostMarketingPage: './pages/boostMarketingPage.ts', | ||
boostPage: './pages/boostPage.ts', | ||
channelPage: './pages/channelPage.ts', | ||
commonPage: './pages/commonPage.ts', | ||
devtoolsPage: './pages/devtoolsPage.ts', | ||
loginPage: './pages/loginPage.ts', | ||
newsfeedPage: './pages/newsfeedPage.ts', | ||
registerPage: './pages/registerPage.ts', | ||
rewardsMarketingPage: './pages/rewardsMarketingPage.ts', | ||
searchPage: './pages/searchPage.ts', | ||
settingsPage: './pages/settingsPage.ts', | ||
singleEntityPage: './pages/singleEntityPage.ts', | ||
supermindConsolePage: './pages/supermindConsolePage.ts', | ||
supermindSettingsPage: './pages/supermindSettingsPage.ts', | ||
tokenMarketingPage: './pages/tokenMarketingPage.ts', | ||
// fragments | ||
composerModalComponent: './fragments/composerModalComponent.ts', | ||
activityComponent: './fragments/activityComponent.ts', | ||
activityModalComponent: './fragments/activityModalComponent.ts', | ||
boostRotatorComponent: './fragments/boostRotatorComponent.ts', | ||
confirmationModalComponent: './fragments/confirmationModalComponent.ts', | ||
notificationsComponent: './fragments/notificationsComponent.ts', | ||
sidebarComponent: './fragments/sidebarComponent.ts', | ||
supermindOnboardingModalComponent: | ||
'./fragments/supermindOnboardingModalComponent.ts', | ||
topbarComponent: './fragments/topbarComponent.ts', | ||
feedNoticeComponent: './fragments/feedNoticeComponent.ts', | ||
}, | ||
name: 'Minds Codecept E2E tests', | ||
gherkin: { | ||
features: './features/*.feature', | ||
steps: './steps/*-steps.ts', | ||
}, | ||
plugins: { | ||
pauseOnFail: {}, | ||
retryFailedStep: { | ||
enabled: true, | ||
}, | ||
tryTo: { | ||
enabled: true, | ||
}, | ||
screenshotOnFail: { | ||
enabled: true, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.