Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jun 23, 2023
1 parent 944a1b4 commit 8cb7b35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/functional/apps/console/_context_menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

it('should copy as curl and show toast when copy as curl button is clicked', async () => {
await PageObjects.console.clearTextArea();
await PageObjects.console.enterRequest();
await PageObjects.console.clickContextMenu();
await PageObjects.console.clickCopyAsCurlButton();

const resultToast = await toasts.getToastElement(1);
const toastText = await resultToast.getVisibleText();
const toastText = await toasts.getToastContent(1);

if (toastText.includes('Write permission denied')) {
log.debug('Write permission denied, skipping test');
Expand Down

0 comments on commit 8cb7b35

Please sign in to comment.