Skip to content

Commit

Permalink
Merge branch 'master' into telemetry-api-limits-subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
akhenry authored Jul 14, 2023
2 parents 28f6e99 + 32529ff commit adf0a19
Show file tree
Hide file tree
Showing 62 changed files with 1,511 additions and 122 deletions.
9 changes: 1 addition & 8 deletions e2e/appActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,7 @@ async function setEndOffset(page, offset) {
async function selectInspectorTab(page, name) {
const inspectorTabs = page.getByRole('tablist');
const inspectorTab = inspectorTabs.getByTitle(name);
const inspectorTabClass = await inspectorTab.getAttribute('class');
const isSelectedInspectorTab = inspectorTabClass.includes('is-current');

// do not click a tab that is already selected or it will timeout your test
// do to a { pointer-events: none; } on selected tabs
if (!isSelectedInspectorTab) {
await inspectorTab.click();
}
await inspectorTab.click();
}

/**
Expand Down
8 changes: 6 additions & 2 deletions e2e/tests/functional/forms.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,12 @@ test.describe('Persistence operations @couchdb', () => {
]);

//Slow down the test a bit
await expect(page.getByRole('treeitem', { name: `  ${myItemsFolderName}` })).toBeVisible();
await expect(page2.getByRole('treeitem', { name: `  ${myItemsFolderName}` })).toBeVisible();
await expect(
page.getByRole('button', { name: `Expand ${myItemsFolderName} folder` })
).toBeVisible();
await expect(
page2.getByRole('button', { name: `Expand ${myItemsFolderName} folder` })
).toBeVisible();

// Both pages: Click the Create button
await Promise.all([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ test.describe('Operator Status', () => {
path: path.join(__dirname, '../../../../helper/', 'addInitOperatorStatus.js')
});
await page.goto('./', { waitUntil: 'domcontentloaded' });
await expect(page.getByText('Select Role')).toBeVisible();
// set role
await page.getByRole('button', { name: 'Select' }).click();
// dismiss role confirmation popup
await page.getByRole('button', { name: 'Dismiss' }).click();
});

// verify that operator status is visible
Expand Down
Loading

0 comments on commit adf0a19

Please sign in to comment.