-
Notifications
You must be signed in to change notification settings - Fork 211
/
workspaces.spec.ts
40 lines (33 loc) · 1002 Bytes
/
workspaces.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {
whitelistGraphql,
checkButtonIsDisabled,
selectFolder,
uniqName
} from '../support/utils';
// TODO reenable this test
xdescribe('Workspaces', () => {
const name = uniqName('workspace');
beforeEach(() => {
whitelistGraphql();
cy.visit('/workspaces');
cy.get('.add-workspace-container').trigger('mouseover', { force: true });
});
it('creates new workspaces', () => {
cy.get('.add-workspace-fab').click({ force: true });
selectFolder();
checkButtonIsDisabled('Create', true);
cy.get('.workspace-name-form-field input')
.click({ force: true })
.type(name + '{enter}');
checkButtonIsDisabled('Create', true);
cy.get('.js-select-schematic .mat-pseudo-checkbox')
.first()
.click({ force: true });
checkButtonIsDisabled('Create', false);
cy.get('button')
.contains('Create')
.click();
cy.contains('div.title', 'Projects', { timeout: 120000 });
cy.get('div.title').contains(name);
});
});