Skip to content

Commit

Permalink
test(console): re-enable organization page tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyijun committed Apr 18, 2024
1 parent 4515787 commit 4d7071f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import { cls, dcls, generateTestName } from '#src/utils.js';

const expectOrg = new ExpectOrganizations(await browser.newPage());

// Temporarily skipping organization tests, will add them back later with the "guide" feature
describe.skip('organizations: create, edit, and delete organization', () => {
describe('organizations: create, edit, and delete organization', () => {
it('navigates to organizations page', async () => {
await expectOrg.start();
await expectOrg.gotoPage('/organizations', 'Organizations');
await expectOrg.toExpectTabs('Organizations', 'Settings');
});

it('should be able to see the table', async () => {
Expand Down Expand Up @@ -47,7 +45,7 @@ describe.skip('organizations: create, edit, and delete organization', () => {
});
});

describe.skip('organizations: search organization', () => {
describe('organizations: search organization', () => {
const [testName1, testName2] = [generateTestName(), generateTestName()];

it('creates two organizations', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export default class ExpectOrganizations extends ExpectConsole {
*/
async toCreateOrganization(name: string) {
await this.gotoPage('/organizations', 'Organizations');
await this.toClickButton('Create organization');
await this.toClickButton('Create organization', false);

await this.toExpectModal('Create organization');
await this.toFillForm({
name,
});
await this.toClick(['.ReactModalPortal', `button${cls('primary')}`].join(' '), 'Create', false);
await this.toClick(['.ReactModalPortal', `button${cls('primary')}`].join(' '), 'Create');
this.toMatchUrl(/\/organizations\/.+$/);
}

Expand Down

0 comments on commit 4d7071f

Please sign in to comment.