test: 💍 Refactor target functions and fix failing test (#2999)
* test: 💍 Fixed broken test * test: 💍 Refactoring to consolidate target function names * test: 💍 fixed failing tests with capitalization issue
This commit is contained in:
1 parent
72639bd6a3
commit
ea591df0bb
15 files changed
+120
-393
No files matched your search
@@ -44,10 +44,10 @@ test.describe('Aliases', () => {
|
||||
const projectsPage = new ProjectsPage(page);
|
||||
await projectsPage.createProject();
|
||||
const targetsPage = new TargetsPage(page);
|
||||
const targetName = await targetsPage.createTargetWithAddress(
|
||||
targetAddress,
|
||||
targetPort,
|
||||
);
|
||||
const targetName = await targetsPage.createTarget({
|
||||
port: targetPort,
|
||||
address: targetAddress,
|
||||
});
|
||||
|
||||
// Create alias for target
|
||||
const aliasName = 'Alias ' + nanoid();
|
||||
@@ -148,11 +148,11 @@ test.describe('Aliases', () => {
|
||||
await projectsPage.createProject();
|
||||
alias = 'example.alias.' + nanoid();
|
||||
const targetsPage = new TargetsPage(page);
|
||||
const targetName = await targetsPage.createTargetWithAddressAndAlias(
|
||||
targetAddress,
|
||||
targetPort,
|
||||
const targetName = await targetsPage.createTarget({
|
||||
port: targetPort,
|
||||
address: targetAddress,
|
||||
alias,
|
||||
);
|
||||
});
|
||||
|
||||
// Connect to target using alias
|
||||
connect = await boundaryCli.connectToAlias(alias, sshUser, sshKeyPath);
|
||||
@@ -206,10 +206,10 @@ test.describe('Aliases', () => {
|
||||
const projectsPage = new ProjectsPage(page);
|
||||
const projectName = await projectsPage.createProject();
|
||||
const targetsPage = new TargetsPage(page);
|
||||
const targetName = await targetsPage.createTargetWithAddress(
|
||||
targetAddress,
|
||||
targetPort,
|
||||
);
|
||||
const targetName = await targetsPage.createTarget({
|
||||
port: targetPort,
|
||||
address: targetAddress,
|
||||
});
|
||||
|
||||
// Create new alias from scope page
|
||||
await boundaryCli.authenticateBoundary(
|
||||
|
||||
Reference in new issue
Block a user