Skip to content

Commit

Permalink
screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Mar 27, 2024
1 parent 381252a commit 56707e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export async function selectFavorite(
// causing something to re-render and the element to go stale?
await browser.pause(1000);

await browser.clickVisible(Selectors.sidebarFavoriteButton(favoriteName));
await browser.clickVisible(Selectors.sidebarFavoriteButton(favoriteName), {
screenshot: 'selecting-favourite.png',
});
await browser.waitUntil(async () => {
const text = await browser.$(Selectors.ConnectionTitle).getText();
return text === favoriteName;
Expand Down
4 changes: 4 additions & 0 deletions packages/compass-e2e-tests/tests/oidc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,13 @@ describe('OIDC integration', function () {
connectionString
);

await browser.screenshot('after-creating-favourite.png');

await browser.doConnect();
await browser.disconnect();

await browser.screenshot('after-disconnecting-favourite.png');

await browser.selectFavorite(favoriteName);
await browser.doConnect();
await browser.disconnect();
Expand Down

0 comments on commit 56707e8

Please sign in to comment.