Hamid Ghaf e55c18ed12
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

26 lines
792 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Base } from '../show';
import { settled } from '@ember/test-helpers';
import { create, clickable, collection, text, isPresent } from 'ember-cli-page-object';
export default create({
...Base,
rows: collection('data-test-row-label'),
certificate: text('[data-test-row-value="Certificate"]'),
hasCert: isPresent('[data-test-row-value="Certificate"]'),
edit: clickable('[data-test-edit-link]'),
generateCert: clickable('[data-test-credentials-link]'),
deleteBtn: clickable('[data-test-role-delete] button'),
confirmBtn: clickable('[data-test-confirm-button]'),
async deleteRole() {
await this.deleteBtn();
await settled();
await this.confirmBtn();
await settled();
},
});