Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Zedel <[email protected]>
  • Loading branch information
mzedel committed Aug 9, 2023
1 parent bcf1088 commit c5f9b32
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/e2e_tests/integration/01-login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,13 @@ test.describe('Login', () => {
await page.waitForSelector(selectors.loggedInText);
// now we can log out
await page.click('.header-dropdown', { force: true });
await page.click(`text=/Log out/i`, { force: true });
await page.getByRole('menuitem', { name: /log out/i }).click();
await page.waitForSelector('text=/log in/i', { timeout: timeouts.tenSeconds });
});

test('fails to access unknown resource', async ({ baseUrl, page }) => {
await page.goto(`${baseUrl}ui/`);
const request = await axios({
url: `${baseUrl}/users`,
method: 'GET',
httpsAgent: new https.Agent({
rejectUnauthorized: false
})
});

const request = await axios.get(`${baseUrl}/users`, { httpsAgent: new https.Agent({ rejectUnauthorized: false }) });
expect(request.status).toEqual(200);
const loginVisible = await page.isVisible(`:is(button:has-text('Log in'))`);
expect(loginVisible).toBeTruthy();
Expand Down

0 comments on commit c5f9b32

Please sign in to comment.