-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v14] refactor(mc-scripts): to remove IE from browserslit (#836)
* refactor(mc-scripts): to remove IE from browserslit * fix(playground): to use supported permissions, fix icon color * refactor(cypress): to simplify login setup
- Loading branch information
Showing
11 changed files
with
61 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { URL_BASE } from '../../support/urls'; | ||
import { URL_EXAMPLES_STARTER } from '../../support/urls'; | ||
|
||
describe('Main view', () => { | ||
it('should render page', () => { | ||
cy.setDesktopViewport(); | ||
cy.login(); | ||
cy.visit(`${URL_BASE}/examples-starter`); | ||
|
||
cy.login({ redirectToUri: URL_EXAMPLES_STARTER }); | ||
cy.getByText('Hello, world').should('exist'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const URL_GRAPHQL = 'https://mc-api.escemo.com/graphql'; | ||
export const URL_API_TOKENS = 'https://mc-api.escemo.com/tokens'; | ||
export const URL_LOGOUT = '/logout'; | ||
|
||
export const projectKey = Cypress.env('PROJECT_KEY'); | ||
|
||
export const URL_BASE = `/${projectKey}`; | ||
|
||
export const URL_STATE_MACHINES = `${URL_BASE}/state-machines`; | ||
|
||
export const URL_EXAMPLES_STARTER = `${URL_BASE}/examples-starter`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const PERMISSIONS = { | ||
ViewStates: 'ViewStates', | ||
ManageStates: 'ManageStates', | ||
ManageDeveloperSettings: 'ManageDeveloperSettings', | ||
ViewDeveloperSettings: 'ViewDeveloperSettings', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters