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
@@ -57,7 +57,7 @@ test(
|
||||
|
||||
// Create target
|
||||
const targetsPage = new TargetsPage(page);
|
||||
const targetName = await targetsPage.createTarget(targetPort);
|
||||
const targetName = await targetsPage.createTarget({ port: targetPort });
|
||||
await targetsPage.addHostSourceToTarget(hostSetName);
|
||||
|
||||
// Add/Remove another host source
|
||||
@@ -127,10 +127,10 @@ test(
|
||||
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,
|
||||
});
|
||||
|
||||
await boundaryCli.authenticateBoundary(
|
||||
controllerAddr,
|
||||
@@ -191,7 +191,10 @@ test(
|
||||
const projectsPage = new ProjectsPage(page);
|
||||
await projectsPage.createProject();
|
||||
const targetsPage = new TargetsPage(page);
|
||||
await targetsPage.createTargetWithAddress(targetAddress, targetPort);
|
||||
await targetsPage.createTarget({
|
||||
port: targetPort,
|
||||
address: targetAddress,
|
||||
});
|
||||
|
||||
// Update target
|
||||
await page.getByRole('button', { name: 'Edit Form' }).click();
|
||||
|
||||
Reference in new issue
Block a user