Skip to content

Commit be2e338

Browse files
authored
0.1.1 (#131)
* Update package.json * Update package-lock.json * add select/unselect assertions
1 parent ccc28ab commit be2e338

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

cypress/integration/component.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,17 @@ it('should add/remove hover overlay on component mouseenter/leave', () => {
129129
})
130130
cy.iframe('#target').find('[data-testid=hover-element]').should('not.exist')
131131
})
132-
it('should support selecting a component', () => {
133-
cy.visit('/').get('[data-testid=component-container]').first().should('be.visible').click()
132+
it('should support selecting/unselecting a component', () => {
133+
cy.visit('/')
134+
.get('[data-testid=component-container]')
135+
.last()
136+
.should('be.visible')
137+
.click()
138+
.should('have.class', 'text-white bg-alpine-300')
139+
140+
cy.get('[data-testid=component-container]').first().click().should('have.class', 'text-white bg-alpine-300')
141+
142+
cy.get('[data-testid=component-container]').last().should('not.have.class', 'text-white bg-alpine-300')
134143
})
135144

136145
it('should display read-only function/HTMLElement attributes', () => {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alpinejs-devtools",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": true,
55
"description": "DevTools extension for debugging Alpine.js applications.",
66
"homepage": "https://github.com/alpine-collective/alpinejs-devtools",

0 commit comments

Comments
 (0)