Skip to content

Commit

Permalink
[Automation] Added test to validate that Create button is disabled wh…
Browse files Browse the repository at this point in the history
…en (#10970)

[Automation] Added test to validate that Create button is disabled when attempting to create a project but name is not provided
  • Loading branch information
eva-vashkevich authored May 8, 2024
1 parent 820374c commit 5ce1260
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cypress/e2e/tests/pages/explorer/project-namespace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ describe('Projects/Namespaces', { tags: ['@explorer', '@adminUser'] }, () => {
projectsNamespacesPage.nsProject().checkExists();
});

describe('Create Project validation', () => {
beforeEach(() => {
projectsNamespacesPage.goTo();
});
// Issue 5975: create button should be disabled unless name is filled in
it('Create button becomes available if the name is filled in', () => {
projectsNamespacesPage.createProjectButtonClick();
projectsNamespacesPage.buttonSubmit().expectToBeDisabled();
projectsNamespacesPage.name().set('test-1234');
projectsNamespacesPage.buttonSubmit().expectToBeEnabled();
});
});

describe('Create Project Error Banner', () => {
beforeEach(() => {
projectsNamespacesPage.goTo();
Expand Down

0 comments on commit 5ce1260

Please sign in to comment.