Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>
  • Loading branch information
mzedel committed Jun 18, 2024
1 parent 4732372 commit 12be024
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/e2e_tests/integration/99-settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ test.describe('Settings', () => {

test.describe('Multi tenant access', () => {
const secondaryUser = 'demo-secondary@example.com';
test('allows adding users to tenants', async ({ baseUrl, browserName, context, environment, loggedInPage, password, username }) => {
test('allows adding users to tenants', async ({ baseUrl, browser, browserName, environment, loggedInPage, password, username }) => {
test.skip(!['enterprise', 'staging'].includes(environment) || browserName !== 'chromium');
const domain = baseUrlToDomain(baseUrl);
context = await prepareCookies(context, domain, '');
const page = await context.newPage();
let newContext = await browser.newContext();
newContext = await prepareCookies(newContext, domain, '');
const page = await newContext.newPage();
await page.goto(`${baseUrl}ui/`);
await processLoginForm({ username: secondaryUser, password, page, environment });
await page.goto(`${baseUrl}ui/settings/my-account`);
Expand Down Expand Up @@ -273,11 +274,12 @@ test.describe('Settings', () => {
await page.getByRole('button', { name: username }).click();
await expect(await page.getByText(/switch organization/i)).toBeVisible();
});
test('allows switching tenants', async ({ baseUrl, browserName, context, environment, loggedInPage, password, username }) => {
test('allows switching tenants', async ({ baseUrl, browser, browserName, environment, loggedInPage, password, username }) => {
test.skip(!['enterprise', 'staging'].includes(environment) || browserName !== 'chromium');
const domain = baseUrlToDomain(baseUrl);
context = await prepareCookies(context, domain, '');
const page = await context.newPage();
let newContext = await browser.newContext();
newContext = await prepareCookies(newContext, domain, '');
const page = await newContext.newPage();
await page.goto(`${baseUrl}ui/`);
await processLoginForm({ username: secondaryUser, password, page, environment });
await page.getByRole('button', { name: username }).click();
Expand Down

0 comments on commit 12be024

Please sign in to comment.