Skip to content

Commit

Permalink
loginpage no longer static
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Oct 22, 2024
1 parent 2b0cf52 commit f46cdfc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/playwright/e2e/github-discovery.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ base.use({ storageState: GH_USER_IDAuthFile });

const test = base.extend<GithubDiscoveryFixture>({
catalogPage: async ({ page }, use) => {
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
const catalog = new Catalog(page);
await catalog.go();
use(catalog);
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/playwright/e2e/github-happy-path.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test.describe.serial('GitHub Happy path', () => {
common = new Common(page);
catalogImport = new CatalogImport(page);
backstageShowcase = new BackstageShowcase(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
});

test('Verify Profile is Github Account Name in the Settings page', async ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.describe('Check RBAC "analytics-provider-segment" plugin', () => {

test.beforeEach(async ({ page }) => {
uiHelper = new UIhelper(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
await uiHelper.openSidebarButton('Administration');
await uiHelper.openSidebar('Plugins');
await uiHelper.verifyHeading('Plugins');
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test.describe.serial('Bulk Import plugin', () => {
uiHelper = new UIhelper(page);
common = new Common(page);
bulkimport = new BulkImport(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
});

// Select two repos: one with an existing catalog.yaml file and another without it
Expand Down Expand Up @@ -254,7 +254,7 @@ test.describe
common = new Common(page);
bulkimport = new BulkImport(page);
catalogImport = new CatalogImport(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
});

test('Verify existing repo from app-config is displayed in bulk import Added repositories', async () => {
Expand Down Expand Up @@ -299,7 +299,7 @@ test.describe

uiHelper = new UIhelper(page);
common = new Common(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
});

test('Bulk Import - Verify users without permission cannot access', async () => {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/playwright/e2e/plugins/rbac/rbac-api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe('Test RBAC plugin REST API', () => {

test.beforeEach(async ({ page }) => {
uiHelper = new UIhelper(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
const apiToken = await RhdhAuthHack.getInstance().getApiToken(page);
responseHelper = new Response(apiToken);
});
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ test.describe
let uiHelper: UIhelper;
let page: Page;

test.beforeEach(async ({ page }, testInfo) => {
test.beforeEach(async ({ page }) => {
uiHelper = new UIhelper(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
await uiHelper.openSidebarButton('Administration');
await uiHelper.openSidebar('RBAC');
await uiHelper.verifyHeading('RBAC');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test.describe('Verify TLS configuration with external Postgres DB', () => {
page,
}) => {
const uiHelper = new UIhelper(page);
await Common.logintoGithub(page);
await new Common(page).logintoGithub();
await uiHelper.openSidebar('Catalog');
await uiHelper.selectMuiBox('Kind', 'Component');
await uiHelper.clickByDataTestId('user-picker-all');
Expand Down

0 comments on commit f46cdfc

Please sign in to comment.