Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Merge bot-projects feature onto main #5066

Merged
merged 79 commits into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
8528d7e
feat: Disable Connect to Skill menu action inside skill (#4557)
srinaath Oct 29, 2020
296e2b8
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Oct 30, 2020
774fb67
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 2, 2020
df209be
always enable AllowClaimValidator (#4624)
luhan2017 Nov 5, 2020
b2e4af8
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 5, 2020
e3f060a
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 6, 2020
2348502
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 9, 2020
a9a8fdd
feat: Local Bots Start/Stop runtime (#4498)
srinaath Nov 10, 2020
a6d5111
fix: correct URL when switching page modes (#4736)
beyackle Nov 10, 2020
9b6fe2d
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 10, 2020
1ee2ad0
feat: Diagnostics Page (#4457)
lei9444 Nov 11, 2020
fab8e96
Support undo/redo for skill (#4754)
srinaath Nov 11, 2020
b01a89d
Corrected types
Nov 11, 2020
f534ea8
chore: rebase main onto bot-projects feature branch (#4780)
srinaath Nov 12, 2020
30df91e
Updated disability styles
Nov 12, 2020
10a5573
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 12, 2020
2c76bb6
fix: remove special case for single-bot view in tree (#4803)
beyackle Nov 13, 2020
28da7a4
fix: repair E2E tests that depended on seeing a single bot name (#4807)
beyackle Nov 13, 2020
a1bcf6b
feat: bot projects skill & context menu (#4492)
zhixzhan Nov 14, 2020
082bb62
feat: Settings page (#4456)
liweitian Nov 16, 2020
31cede6
fix: remove checkURL call from navTo on dialog clicks (#4795)
beyackle Nov 16, 2020
672db3a
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 17, 2020
4eb5307
All tests passed
Nov 17, 2020
2e8b246
fix: keep highlight on item with the menu open (#4835)
beyackle Nov 17, 2020
f98a372
set botProjectSpaceLoadedState to true if it only contains root bot (…
liweitian Nov 18, 2020
3977ce0
chore: update the navigation link for setting page (#4827)
lei9444 Nov 18, 2020
800a4df
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 18, 2020
9c13ca0
Merge branch 'feature/bot-projects' of https://github.com/microsoft/B…
Nov 18, 2020
3a5b5cc
fix: style of active links in ProjectTree (#4886)
beyackle Nov 19, 2020
1967e04
feat: Updated statuses on bot runtime start (#4889)
srinaath Nov 19, 2020
20ca94d
feature: use new ProjectTree in the LG, LU, and QnA pages (#4839)
beyackle Nov 20, 2020
49c0f03
chore: Rebase main on bot-projects (#4914)
srinaath Nov 20, 2020
a98ae17
fix: Diagnostic page issues (#4901)
lei9444 Nov 20, 2020
529951e
fix: Fix for getting correct senstive settings (#4908)
srinaath Nov 20, 2020
388818b
feat: Enable add a knowledge base to a skill in context menu. (#4893)
zhixzhan Nov 20, 2020
c30e7cd
feat: sync skillbot's locale with root bot (#4562)
liweitian Nov 20, 2020
42e5ed0
fix: Toggle interaction on start bots (#4930)
srinaath Nov 21, 2020
e8b7e2b
fix: links created for breadcrumbs now point to the right place (#4885)
beyackle Nov 21, 2020
d43d3d1
fix: Add diagnostic header oon the design page (#4916)
lei9444 Nov 21, 2020
10bf62d
fix: use URL to select sidebar icons and fix pathname in header (#4929)
beyackle Nov 21, 2020
f55001a
fix: botprojects context menu issues (#4866)
zhixzhan Nov 22, 2020
74a95ad
chore: Rebase main on feature branch (#4932)
srinaath Nov 22, 2020
d18422c
fix: Dialog creation, trigger creation error resolved (#4934)
srinaath Nov 23, 2020
5406ec0
fix: make copy, move and paste work for one bot instead of cross bots…
lei9444 Nov 23, 2020
4f3a957
fix: the board in project tree on the ellipsis is taller (#4941)
lei9444 Nov 23, 2020
545a150
fix: Settings page url (#4956)
liweitian Nov 24, 2020
ac57d72
fix: scrolling issue in propertyeditor (#4957)
lei9444 Nov 24, 2020
f2bcbc2
fix: the parameter lufile name is not correct when removing lu intent…
liweitian Nov 24, 2020
2c48fe2
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 24, 2020
b9b291b
feat: publish page (#4877)
alanlong9278 Nov 24, 2020
98bc9cf
Remove unused toolbar items
Nov 24, 2020
082c3b5
Merge branch 'feature/bot-projects' of https://github.com/microsoft/B…
Nov 24, 2020
03ed3a1
fix: Don't prompt for key if LUIS is not used anywhere (#4971)
taicchoumsft Nov 24, 2020
e8b6fd0
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Nov 24, 2020
0a2ad2e
fix: Memory leak & UI adjust for publish page (#4978)
alanlong9278 Nov 25, 2020
c426a0a
Fix LUIS key check - LuProvider can be blank for LUIS (#4976)
taicchoumsft Nov 25, 2020
1d9da6b
fix publish page url on left navigation list (#4985)
liweitian Nov 25, 2020
d2480b8
fix: scroll to settings page component (#4983)
liweitian Nov 26, 2020
3495d95
fix: can not resize pane (#5000)
alanlong9278 Nov 29, 2020
6c4e3f7
fix: click show skill manifest no response in form editor (#4979)
zhixzhan Nov 29, 2020
8f48b9d
fix: sort publish history err (#4993)
alanlong9278 Nov 29, 2020
a690a7a
Remove `Add` dropdown in toolbar (#4990)
zhixzhan Nov 30, 2020
e79cb36
fix: skill bot path bug (#5001)
zhixzhan Nov 30, 2020
3f8baf3
update l10n files (#5016)
beyackle Nov 30, 2020
4c59e90
Remove change to inactive status
Dec 1, 2020
dd7c451
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Dec 1, 2020
1f4ed20
fix: ProjectTree fixes for form dialog items (#5036)
hatpick Dec 1, 2020
869e63c
feature: add Common links to tree (#5022)
beyackle Dec 1, 2020
b5551c9
feat: Add LUIS name to settings (#5045)
liweitian Dec 2, 2020
405c8d3
fix: merge with main (#5048)
liweitian Dec 2, 2020
401913e
fix: merge with main again (#5049)
liweitian Dec 2, 2020
3e4170e
fix: merge with main again (#5050)
liweitian Dec 2, 2020
f0f74e8
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Dec 2, 2020
d83f7a7
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Dec 2, 2020
4ad27ee
fix: Start bots panel design and error popup issues (#5061)
srinaath Dec 2, 2020
4bf06bc
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
Dec 2, 2020
3a1251d
Merge branch 'feature/bot-projects' of https://github.com/microsoft/B…
Dec 2, 2020
f16c06c
make common links default to false, add back to LG page (#5063)
beyackle Dec 3, 2020
412e29f
Merge branch 'main' into feature/bot-projects-new
srinaath Dec 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Composer/cypress/integration/Breadcrumb.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ context('breadcrumb', () => {

// Return to Main.dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
});

Expand All @@ -29,7 +29,7 @@ context('breadcrumb', () => {

// Return to Main.dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});

hasBreadcrumbItems(cy, ['__TestTodoSample']);
Expand Down
4 changes: 2 additions & 2 deletions Composer/cypress/integration/CreateNewBot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ context('Creating a new bot', () => {
cy.findByTestId('NextStepButton').click();
cy.enterTextAndSubmit('NewDialogName', '__TestNewProject', 'SubmitNewBotBtn');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestNewProject').should('exist');
cy.findAllByText('__TestNewProject').should('exist');
});
});

Expand All @@ -25,7 +25,7 @@ context('Creating a new bot', () => {
cy.findByTestId('NextStepButton').click();
cy.enterTextAndSubmit('NewDialogName', '__TestNewProject2', 'SubmitNewBotBtn');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestNewProject2').should('exist');
cy.findAllByText('__TestNewProject2').should('exist');
cy.findByText('addtodo').should('exist');
cy.findByText('cleartodos').should('exist');
cy.findByText('deletetodo').should('exist');
Expand Down
3 changes: 1 addition & 2 deletions Composer/cypress/integration/LGPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ context('LG Page', () => {
cy.findByTestId('LeftNav-CommandBarButtonBot Responses').click();
// left nav tree
cy.contains('TodoSample');
cy.contains('All');

cy.findByTestId('showcode').as('switchButton');

Expand All @@ -29,7 +28,7 @@ context('LG Page', () => {

// nav to Main dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
});
});
9 changes: 1 addition & 8 deletions Composer/cypress/integration/LUPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ context('LU Page', () => {
cy.findByTestId('LeftNav-CommandBarButtonUser Input').click();
// left nav tree
cy.contains('__TestToDoBotWithLuisSample');
cy.contains('All');

cy.findByTestId('showcode').should('not.exist');

Expand All @@ -23,17 +22,11 @@ context('LU Page', () => {

// nav to ToDoBotWithLuisSample.main dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestToDoBotWithLuisSample').click('left');
cy.findAllByText('__TestToDoBotWithLuisSample').last().click('left');
});
cy.findByTestId('showcode').as('switchButton');
// goto edit-mode
cy.get('@switchButton').click();
cy.findByTestId('LUPage').get('.monaco-editor').should('exist');

// back to all table view
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('All').click();
});
cy.findByTestId('LUPage').findByTestId('table-view').should('exist');
});
});
2 changes: 1 addition & 1 deletion Composer/cypress/integration/LeftNavBar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ context('Left Nav Bar', () => {
cy.url().should('include', 'language-generation');
cy.findByTestId('LeftNav-CommandBarButtonUser Input').click();
cy.url().should('include', 'language-understanding');
cy.findByTestId('LeftNav-CommandBarButtonSettings').click();
cy.findByTestId('LeftNav-CommandBarButtonComposer Settings').click();
cy.url().should('include', 'setting');
});
});
33 changes: 14 additions & 19 deletions Composer/cypress/integration/LuisDeploy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,35 @@ context('Luis Deploy', () => {
cy.server();
cy.route('POST', '/api/publish/*/publish/default', { endpointURL: 'anything', status: 202 });
cy.route('POST', '/api/projects/*/settings', 'OK');
cy.route('GET', '/api/publish/*/status/default', { endpointURL: 'anything', status: 200 });
cy.route('GET', '/api/publish/*/status/default', { endpointURL: 'anything', status: 404 });
cy.visit('/home');
cy.createBot('ToDoBotWithLuisSample');
});

it('can deploy luis success', () => {
cy.findByTestId('LeftNav-CommandBarButtonUser Input').click();
cy.visitPage('Project Settings');
cy.findAllByTestId('rootLUISKey').type('12345678', { delay: 200 });
cy.findAllByTestId('rootLUISRegion').type('westus', { delay: 200 });
cy.visitPage('User Input');
cy.url().should('contain', 'language-understanding/all');
cy.visitPage('Design');
cy.route({
method: 'POST',
url: 'api/projects/*/build',
status: 200,
response: 'fixture:luPublish/success',
status: 400,
response: 'fixture:luPublish/failure',
});
cy.findByText(/^(Start|Restart) Bot$/).click();

// clear its settings before
cy.enterTextAndSubmit('ProjectNameInput', 'MyProject');
cy.enterTextAndSubmit('EnvironmentInput', 'composer');
cy.enterTextAndSubmit('AuthoringKeyInput', '0d4991873f334685a9686d1b48e0ff48');
// wait for the debounce interval of sync settings
cy.findByText('OK').click();
cy.findByText('Restart Bot').should('exist');
cy.findByText('Test in Emulator').should('exist');
cy.findByTitle(/^Start all bots/).click();
cy.findByTitle('Open start bots panel').click();
cy.findByText('See Details').click();

cy.route({
method: 'POST',
url: 'api/projects/*/build',
status: 400,
response: 'fixture:luPublish/error',
status: 200,
response: 'fixture:luPublish/success',
});
cy.findByText('Restart Bot').click();
cy.findByText('Try again').click();
cy.findByTestId('AuthoringKeyInput').type('no-id');
cy.findByText('OK').click();
cy.findByTitle(/^Stop all bots/).click();
});
});
6 changes: 4 additions & 2 deletions Composer/cypress/integration/NewDialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ context('Creating a new Dialog', () => {
});

it('can create a new dialog from project tree', () => {
cy.findByTestId('AddFlyout').click();
cy.findByTestId('FlyoutNewDialog').click();
cy.findByTestId('BotHeader-__TestTodoSample').within(() => {
cy.findByTestId('dialogMoreButton').click({ force: true });
});
cy.findAllByText('Add a dialog').click();
cy.findByTestId('NewDialogName').type('{selectall}TestNewDialog2{enter}');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('TestNewDialog2').should('exist');
Expand Down
20 changes: 13 additions & 7 deletions Composer/cypress/integration/NotificationPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,39 @@ context('Notification Page', () => {
});

it('can show lg syntax error ', () => {
cy.visitPage('Design');
cy.visitPage('Bot Responses');

cy.findByTestId('ProjectTree').within(() => {
cy.findAllByText('__TestToDoBotWithLuisSample').last().click();
});

cy.findByTestId('showcode').click();
cy.get('textarea').type('#', { delay: 200 });

cy.findByTestId('LeftNav-CommandBarButtonNotifications').click();
cy.findByTestId('LeftNav-CommandBarButtonDiagnostics').click();

cy.findByTestId('notifications-table-view').within(() => {
cy.findAllByText('common.en-us.lg').should('exist').first().click();
cy.findByTestId('diagnostics-table-view').within(() => {
cy.findAllByText('__TestToDoBotWithLuisSample.en-us.lg').should('exist').first().click();
});

cy.findAllByText('Bot Responses').should('exist');
});

it('can show lu syntax error ', () => {
cy.visitPage('Design');
cy.visitPage('User Input');

cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestToDoBotWithLuisSample').click();
cy.findAllByText('__TestToDoBotWithLuisSample').last().click();
});

cy.findByTestId('showcode').click();
cy.get('textarea').type('t', { delay: 200 });
cy.get('textarea').type('t*', { delay: 200 });

cy.findByTestId('LeftNav-CommandBarButtonNotifications').click();
cy.findByTestId('LeftNav-CommandBarButtonDiagnostics').click();

cy.findByTestId('notifications-table-view').within(() => {
cy.findByTestId('diagnostics-table-view').within(() => {
cy.findAllByText('__TestToDoBotWithLuisSample.en-us.lu').should('exist').first().dblclick();
});

Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/Onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('Onboarding', () => {
cy.createBot('TodoSample', 'Onboarding');
cy.visitPage('Design');
//enable onboarding setting
cy.visitPage('Settings');
cy.visitPage('Composer Settings');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('Application Settings').click();
});
Expand Down
28 changes: 8 additions & 20 deletions Composer/cypress/integration/Publish.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,20 @@ context('Publish Page', () => {
it('can add profile and publish in publish page', () => {
// click left nav button
cy.findByTestId('LeftNav-CommandBarButtonPublish').click();
// publish page
cy.contains('Publish Profiles');
// target list exist
cy.contains('All profiles');
cy.findByTestId('Publish').findByTestId('target-list').should('exist');
cy.findByText('__TestEchoBot');

// status list exist
cy.contains('Time');
cy.contains('Bot');
cy.contains('Date');
cy.findByTestId('Publish').findByTestId('publish-status-list').should('exist');

// add profile
cy.findByText('Add new profile').click();
cy.visitPage('Project Settings');
cy.findByText('Add new publish profile').click();
cy.findByText('Add a publish profile').should('exist');
cy.findByText('Name').type('testProfile');
cy.findAllByPlaceholderText('My Publish Profile').first().type('testProfile');
cy.findByText('Choose One').click();
cy.findByText('azure publish').click();
// show instruction
cy.findByText('plugin instruction').should('exist');
// save profile
cy.findByText('Save').click();
// new profile should exist in target list
cy.findByTestId('Publish')
.findByTestId('target-list')
.within(() => {
cy.findByText('testProfile').should('exist');
});

cy.findByTestId('LeftNav-CommandBarButtonPublish').click();
cy.findByText('testProfile');
});
});
4 changes: 1 addition & 3 deletions Composer/cypress/integration/RemoveDialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ context('RemoveDialog', () => {
});
});

cy.get('.ms-ContextualMenu-linkContent > .ms-ContextualMenu-itemText').within(() => {
cy.findByText('Remove this dialog').click();
});
cy.findByText('Remove this dialog').click();

cy.findByText('Yes').click();

Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/SaveAs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ context('Saving As', () => {
cy.findByText('Save as').click();
cy.enterTextAndSubmit('NewDialogName', '__TestSaveAs', 'SubmitNewBotBtn');
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestSaveAs').should('exist');
cy.findAllByText('__TestSaveAs').should('exist');
});
});
});
4 changes: 2 additions & 2 deletions Composer/cypress/integration/ToDoBot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ context('ToDo Bot', () => {

it('can open the main dialog', () => {
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
cy.withinEditor('PropertyEditor', () => {
cy.findByDisplayValue('__TestTodoSample').should('exist');
cy.findAllByDisplayValue('__TestTodoSample').should('exist');
});
});

Expand Down
25 changes: 17 additions & 8 deletions Composer/cypress/integration/TriggerCreation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ context('Creating a new trigger', () => {

it('can create different kinds of triggers ', () => {
cy.visitPage('Design');
cy.findByTestId('DialogHeader-__TestEmptyBot').click();
cy.findByTestId('recognizerTypeDropdown').click();
cy.findByText('Regular expression recognizer').click();

//onintent trigger
cy.findByTestId('AddFlyout').click();
cy.findByTestId('FlyoutNewTrigger').click();
cy.findByTestId('DialogHeader-__TestEmptyBot').within(() => {
cy.findByTestId('dialogMoreButton').click({ force: true });
});
cy.findAllByText('Add a trigger').click();
cy.findByTestId('triggerTypeDropDown').click();
cy.get('[title="Intent recognized"]').click();
cy.findByTestId('TriggerName').type('myTrigger1');
Expand All @@ -23,8 +26,10 @@ context('Creating a new trigger', () => {
cy.findAllByText('myTrigger1').should('exist');

//on Dialog Event trigger
cy.findByTestId('AddFlyout').click();
cy.findByTestId('FlyoutNewTrigger').click();
cy.findByTestId('DialogHeader-__TestEmptyBot').within(() => {
cy.findByTestId('dialogMoreButton').click({ force: true });
});
cy.findAllByText('Add a trigger').click();
cy.findByTestId('triggerTypeDropDown').click();
cy.get('[title="Dialog events"]').click();
cy.findByTestId('eventTypeDropDown').click();
Expand All @@ -33,17 +38,21 @@ context('Creating a new trigger', () => {
cy.findAllByText('Begin dialog event').should('exist');

// custom event
cy.findByTestId('AddFlyout').click();
cy.findByTestId('FlyoutNewTrigger').click();
cy.findByTestId('DialogHeader-__TestEmptyBot').within(() => {
cy.findByTestId('dialogMoreButton').click({ force: true });
});
cy.findAllByText('Add a trigger').click();
cy.findByTestId('triggerTypeDropDown').click();
cy.get('[title="Custom events"]').click();
cy.findByTestId('CustomEventName').type('myCustomEvent');
cy.findByTestId('triggerFormSubmit').click();
cy.findAllByText('myCustomEvent').should('exist');

//on activity trigger
cy.findByTestId('AddFlyout').click();
cy.findByTestId('FlyoutNewTrigger').click();
cy.findByTestId('DialogHeader-__TestEmptyBot').within(() => {
cy.findByTestId('dialogMoreButton').click({ force: true });
});
cy.findAllByText('Add a trigger').click();
cy.findByTestId('triggerTypeDropDown').click();
cy.get('[title="Activities"]').click();
cy.findByTestId('activityTypeDropDown').click();
Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/VisualDesigner.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('Visual Designer', () => {
cy.createBot('TodoSample');
// Return to Main.dialog
cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestTodoSample').click();
cy.findAllByText('__TestTodoSample').last().click();
});
});

Expand Down
7 changes: 3 additions & 4 deletions Composer/cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ import axios from 'axios';
import './commands';

beforeEach(() => {

cy.exec('yarn test:integration:clean');
window.localStorage.setItem('composer:OnboardingState', JSON.stringify({ complete: true }));
window.sessionStorage.setItem('composer:ProjectIdCache', '');
cy.request('post', '/api/settings', {
settings: {
telemetry: {
allowDataCollection: false
}
}
allowDataCollection: false,
},
},
});
});

Expand Down
Loading