Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Mar 28, 2024
1 parent dac0a85 commit 2090e29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/plugins/editor-preview-asyncapi/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser';
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser';
import { ProtoBuffSchemaParser } from '@asyncapi/protobuf-schema-parser';

import { Raml10SchemaParser } from './util/raml-1-0-parser.js';
import { Raml10SchemaParser } from './util/parsers/raml-1-0-parser.js';

/**
* Action types.
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/editor-preview-asyncapi/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const selectParseMarkers = createSelector(
(parseErrors, monaco, modelVersionId) => {
return parseErrors.map((diagnostic) => ({
message: diagnostic.message,
startLineNumber: diagnostic.range.start.line + 1,
endLineNumber: diagnostic.range.end.line + 1,
startLineNumber: diagnostic.range.start.line,
endLineNumber: diagnostic.range.end.line,
startColumn: diagnostic.range.start.character,
endColumn: diagnostic.range.end.character,
code: `ASNCPRSR`,
Expand Down
4 changes: 2 additions & 2 deletions test/cypress/e2e/plugin.validation-pane.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Monaco Editor with Validation Pane', () => {
* expect table body <tbody> to always not exist if there are no errors
* make appropriate changes if/when needed
*/
it('should display visible Validation Pane table header and table body when error exists', () => {
it.only('should display visible Validation Pane table header and table body when error exists', () => {
cy.get('.swagger-editor__validation-table')
.should('exist')
.get('.swagger-editor__validation-table > thead')
Expand All @@ -47,7 +47,7 @@ describe('Monaco Editor with Validation Pane', () => {
.should('be.visible');
// validation error message is parser specific
cy.get('.swagger-editor__validation-table > tbody td:nth-child(4)')
.contains('should NOT have')
.contains('Object must have required property "info"')
.should('be.visible');
});

Expand Down

0 comments on commit 2090e29

Please sign in to comment.