nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

Update Nightwatch setup in `create-vue` to latest standards.

Open garg3133 opened this issue 1 year ago • 10 comments

The setup done for Nightwatch when creating a new Vue project using the create-vue tool is outdated. For example, there are a lot of dependencies which we no longer need (chromedriver, @types/nightwatch, etc.).

So, we should update the same to use the latest standards (refer to the create-nightwatch tool to see how a new project is scaffolded now), and verify that the Nightwatch tests work for all different ways of generating a Vue project (by choosing different selections each time).

Related: https://github.com/vuejs/create-vue/pull/404#issuecomment-1850339240

garg3133 avatar Dec 11 '23 17:12 garg3133

Hey, I would like to work on this issue, but as I am new to open source I am getting some issues while setting up the local env

thedeeppp avatar Dec 13 '23 07:12 thedeeppp

Hi @thedeeppp, to work on this issue you don't need to setup the Nightwatch project, but the create-vue project and do the changes there.

If you try to setup a new project using the create-vue tool, you'll see a question "Add an End-to-End Testing Solution?" and where Nightwatch is also an option. So, if you select Nightwatch there, it will setup Nightwatch as well in the Vue project. So, we want to make changes to that Nightwatch setup to ensure that it follows the latest project standards and works with every combination of generating a Vue project.

To see how the Nightwatch project should look like according to the latest standards, you can try to setup a new Nightwatch project using npm init nightwtach@latest project-name command.

garg3133 avatar Dec 26 '23 18:12 garg3133

Hey, I am interested to work on this issue

skushagra9 avatar Feb 23 '24 05:02 skushagra9

Hey sure, you can start investigating on this issue and let us know how you plan to solve it, we'll assign the issue to you once you seem to be close to a potential solution. Let us know if you need any help.

garg3133 avatar Feb 23 '24 11:02 garg3133

sure, thanks

skushagra9 avatar Feb 23 '24 13:02 skushagra9

The setup done for Nightwatch when creating a new Vue project using the create-vue tool is outdated. For example, there are a lot of dependencies which we no longer need (chromedriver, @types/nightwatch, etc.).

So, we should update the same to use the latest standards (refer to the create-nightwatch tool to see how a new project is scaffolded now), and verify that the Nightwatch tests work for all different ways of generating a Vue project (by choosing different selections each time).

Related: vuejs/create-vue#404 (comment)

Hey @garg3133 , I have found that in nightwatch.conf-noplugins.js and nightwatch.conf.js file have server path chromedriver it can be replaced by ' ' Do u mean that change?? (So, If is'it should I change it by raising a PR ?) So is it? and i have not found that @types/nightwatch

SjxSubham avatar Feb 27 '24 16:02 SjxSubham

hey @garg3133 , sir i have investigated the issue , plz guide me

Its the standard nigntwatch project dependicies:

Screenshot from 2024-03-03 15-57-29

Its when project created using create-vue and Add an End-to-End Testing Solution?" : Nightwatch

Screenshot from 2024-03-03 15-59-56

Its when no testing environment selected (Add an End-to-End Testing Solution?" : N0) but project is created using create-vue

Screenshot from 2024-03-03 16-01-17

According to above extra dependicies are:

"chromedriver": "^121.0.0", "geckodriver": "^4.3.1",

plz guide me how do i remove the extra dependecies ?

anshuman-rai-27 avatar Mar 03 '24 10:03 anshuman-rai-27

hey assign these issue to me and I will resolve these

Visbhavesh avatar Mar 25 '24 10:03 Visbhavesh