test(e2e): Refactor imports for boundary cli helper methods (#2632)
* test(e2e): Update imports to match boundary-http conventions * test(e2e): Remove cli from method name
This commit is contained in:
1 parent
daed714b98
commit
af8655ec45
37 files changed
+394
-454
No files matched your search
@@ -7,19 +7,14 @@ import { test } from '../../global-setup.js';
|
||||
import { expect } from '@playwright/test';
|
||||
import { execSync } from 'node:child_process';
|
||||
|
||||
import {
|
||||
authenticateBoundaryCli,
|
||||
checkBoundaryCli,
|
||||
deleteScopeCli,
|
||||
getOrgIdFromNameCli,
|
||||
} from '../../helpers/boundary-cli.js';
|
||||
import * as boundaryCli from '../../helpers/boundary-cli';
|
||||
import { AuthMethodsPage } from '../pages/auth-methods.js';
|
||||
import { LoginPage } from '../pages/login.js';
|
||||
import { OrgsPage } from '../pages/orgs.js';
|
||||
import { UsersPage } from '../pages/users.js';
|
||||
|
||||
test.beforeAll(async () => {
|
||||
await checkBoundaryCli();
|
||||
await boundaryCli.checkBoundaryCli();
|
||||
});
|
||||
|
||||
test('Verify new auth-method can be created and assigned to users @ce @ent @aws @docker', async ({
|
||||
@@ -104,7 +99,7 @@ test('Verify new auth-method can be created and assigned to users @ce @ent @aws
|
||||
.getByText('Projects'),
|
||||
).toBeVisible();
|
||||
} finally {
|
||||
await authenticateBoundaryCli(
|
||||
await boundaryCli.authenticateBoundary(
|
||||
baseURL,
|
||||
adminAuthMethodId,
|
||||
adminLoginName,
|
||||
@@ -130,9 +125,9 @@ test('Verify new auth-method can be created and assigned to users @ce @ent @aws
|
||||
}
|
||||
|
||||
if (orgName) {
|
||||
const orgId = await getOrgIdFromNameCli(orgName);
|
||||
const orgId = await boundaryCli.getOrgIdFromName(orgName);
|
||||
if (orgId) {
|
||||
await deleteScopeCli(orgId);
|
||||
await boundaryCli.deleteScope(orgId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user