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

Introduce end-to-end testing [5] #8

Closed
jcebel opened this issue Nov 8, 2019 · 2 comments
Closed

Introduce end-to-end testing [5] #8

jcebel opened this issue Nov 8, 2019 · 2 comments
Assignees
Milestone

Comments

@jcebel
Copy link
Owner

jcebel commented Nov 8, 2019

eclipsesource#17

@jcebel jcebel added this to the Sprint 2 milestone Nov 8, 2019
@jcebel jcebel modified the milestones: Sprint 2, Sprint 3 Nov 15, 2019
@leodennis
Copy link
Collaborator

leodennis commented Nov 22, 2019

import { Selector } from 'testcafe'; // first import testcafe selectors

fixture `Getting Started`// declare the fixture
    .page `http://localhost:3000/`;  // specify the start page
	
//then create a test and place your code there
test('My first test', async t => {
	const menuSelect = await Selector('.p-MenuBar-content', { visibilityCheck: true });
	const wsSelect = Selector('#shell-tab-explorer-view-container');
	const fileSelect = Selector('.theia-TreeNodeSegment.theia-TreeNodeSegmentGrow').withText('empty.ecore');
	const classOption = Selector('.tool-button').withText('Class');
	const paneSelect = Selector('.sprotty-graph');
	
    await t
		.click(wsSelect)
		.click(fileSelect)
		.click(classOption)
		.click(paneSelect, {offsetX: 10, offsetY: 10})
		.click(classOption)
		.click(paneSelect, {offsetX: 10, offsetY: 200})

        // Use the assertion to check if the actual header text is equal to the expected one
        //.expect(Selector('#article-header').innerText).eql('Thank you, John Smith!');
});

@sgraband sgraband changed the title Introduce end-to-end testing Introduce end-to-end testing [5] Nov 29, 2019
@sgraband
Copy link
Collaborator

sgraband commented Nov 29, 2019

  • test case which opens serialization (annotation and ecore) and see if it matches the expectation

  • add 2 missing test cases

  • log all errors/bug which have been found

@sgraband sgraband reopened this Dec 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants