Disable Team tests if required (#234)
1. Add env variables loader using dotenv to e2e tests 2. Skip Team account tests based on variable 3. Remove hardcoded instance of Makerkit in tests
This commit is contained in:
committed by
GitHub
parent
765cef8736
commit
53b09fcb8e
@@ -231,6 +231,8 @@ test.describe('Admin', () => {
|
||||
});
|
||||
|
||||
test.describe('Team Account Management', () => {
|
||||
test.skip(process.env.ENABLE_TEAM_ACCOUNT_TESTS !== 'true', 'Team account tests are disabled');
|
||||
|
||||
let testUserEmail: string;
|
||||
let teamName: string;
|
||||
let slug: string;
|
||||
|
||||
@@ -102,7 +102,7 @@ export class Mailbox {
|
||||
|
||||
const json = await this.getEmail(email, {
|
||||
deleteAfter,
|
||||
subject: `One-time password for Makerkit`,
|
||||
subject: `One-time password for`,
|
||||
});
|
||||
|
||||
if (!json) {
|
||||
@@ -152,7 +152,7 @@ export class Mailbox {
|
||||
const message = params.subject
|
||||
? (() => {
|
||||
const filtered = messagesResponse.messages.filter(
|
||||
(item) => item.Subject === params.subject,
|
||||
(item) => item.Subject.includes(params.subject!),
|
||||
);
|
||||
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user