Skip to content

Commit

Permalink
Make obc tests more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
ebondare committed Aug 4, 2020
1 parent e47665c commit 5986bc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('Test Object Bucket Claim resource', () => {
let obcHandler;

beforeAll(async () => {
await browser.sleep(2000);
obcHandler = new CreateOBCHandler(OBC_NAME, testName, OBC_STORAGE_CLASS, '');
await obcHandler.createBucketClaim();
// Set namespace here and keep the deployment JSON NS agnostic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const goToOBPage = async () => {

const createOBC = element(by.buttonText('Create Object Bucket Claim'));

export const namespaceDropdown = $('[data-test-id="namespace-bar-dropdown"] div div button');
const obcNameInput = $('#obc-name');
// doesn't work in OCP 4.3
// const scDropdown = $('#sc-dropdown');
Expand Down Expand Up @@ -100,6 +101,7 @@ export class CreateOBCHandler {

async createBucketClaim() {
await goToOBCPage();
await selectItemFromDropdown(this.namespace, namespaceDropdown);
await this.waitForElement(createOBC);
await click(createOBC);
await this.waitForElement(scDropdown);
Expand Down

0 comments on commit 5986bc9

Please sign in to comment.