Skip to content

Commit

Permalink
fixed cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahab3181 committed May 16, 2024
1 parent 9f6aef4 commit 6ec573f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cypress/e2e/55_updateFeature.cy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
describe('Update feature To Workspace', () => {
it('Updating A Workspace', () => {
it('Updating A Workspace Feature', () => {
cy.login('carol');
cy.wait(1000);

const WorkSpaceName = 'Workspace Feature Update';
const WorkSpaceName = 'WS Feature Update';

const workspace = {
loggedInAs: 'carol',
Expand Down Expand Up @@ -37,7 +37,7 @@ describe('Update feature To Workspace', () => {

cy.contains('Add New Feature');

const newFeature = 'This is my new Feature';
const newFeature = 'A new Feature';
cy.get('[data-testid="feature-input"]').type(newFeature);
cy.get('[data-testid="add-feature-btn"]').click();
cy.wait(1000);
Expand All @@ -48,9 +48,10 @@ describe('Update feature To Workspace', () => {
cy.get('[data-testid="architecture-option-btn"]').click();
cy.get('[data-testid="architecture-edit-btn"]').click();

const updatedFeature = 'This is my updated Feature';
const updatedFeature = 'Feature Architecture';
cy.get('[data-testid="architecture-textarea"]').type(updatedFeature);
cy.get('[data-testid="architecture-update-btn"]').click();
cy.wait(1000);

cy.contains(updatedFeature).should('exist', { timeout: 1000 });

Expand Down

0 comments on commit 6ec573f

Please sign in to comment.