Skip to content

Commit

Permalink
chore(test): refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lazar <[email protected]>
  • Loading branch information
cbr7 committed May 22, 2024
1 parent ad4165b commit 1daf76d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/playwright/src/bootc-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ async function ensureBootcIsRemoved(): Promise<void> {
}

async function handleWebview(imageDetailsPage: ImageDetailsPage): Promise<[Page, Page]> {
await imageDetailsPage.actionsButton.click();
await playExpect(imageDetailsPage.buildDiskImageButton).toBeEnabled();
await imageDetailsPage.buildDiskImageButton.click();
await page.getByLabel('Bootable Containers').click()
await page.waitForTimeout(2000);

const webView = page.getByRole('document', { name: 'Bootable Containers' });
Expand Down
2 changes: 1 addition & 1 deletion tests/playwright/src/model/bootc-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class BootcPage {
this.amd64Button = webview.getByLabel('amd64-button');
this.arm64Button = webview.getByLabel('arm64-button');
this.bootcListPage = webview.getByRole('region', { name: 'Bootable Containers', exact: true });
this.bootcBuildDiskPage = webview.getByRole('region', { name: 'Build Disk Image', exact: true });
this.bootcBuildDiskPage = webview.getByLabel('Build Disk Image');
this.buildButton = webview.getByRole('button', { name: 'Build', exact: true });
this.goBackButton = webview.getByRole('button', { name: 'Go back', exact: true });
this.rowGroup = webview.getByRole('rowgroup').nth(1);
Expand Down

0 comments on commit 1daf76d

Please sign in to comment.