@dhis2-ui/popper
Advanced tools
Comparing version 9.5.0-alpha.1 to 9.5.0
"use strict"; | ||
var _steps = require("cypress-cucumber-preprocessor/steps"); | ||
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor"); | ||
(0, _steps.Given)('a Popper with placement bottom-start has a React Ref as its reference', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('a Popper with placement bottom-start has a React Ref as its reference', () => { | ||
cy.visitStory('Popper', 'React Ref As Reference'); | ||
}); | ||
(0, _steps.Given)('a Popper with placement bottom-start has a DOM node as its reference', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('a Popper with placement bottom-start has a DOM node as its reference', () => { | ||
cy.visitStory('Popper', 'DOM Node As Reference'); | ||
}); | ||
(0, _steps.Given)('a Popper with placement bottom-start has a virtual element as its reference', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('a Popper with placement bottom-start has a virtual element as its reference', () => { | ||
cy.visitStory('Popper', 'Virtual Element As Reference'); | ||
}); | ||
(0, _steps.Then)('the left of the popper is aligned with the left of the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the left of the popper is aligned with the left of the reference element', () => { | ||
cy.all(() => cy.get('button'), () => cy.get('[data-test="dhis2-uicore-popper"]')).should(_ref => { | ||
@@ -22,3 +22,3 @@ let [$reference, $popper] = _ref; | ||
}); | ||
(0, _steps.Then)('the top of the popper is adjacent to the bottom of the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the top of the popper is adjacent to the bottom of the reference element', () => { | ||
cy.all(() => cy.get('button'), () => cy.get('[data-test="dhis2-uicore-popper"]')).should(_ref2 => { | ||
@@ -31,3 +31,3 @@ let [$reference, $popper] = _ref2; | ||
}); | ||
(0, _steps.Then)('the top and left of the popper correspond with the virtualElement', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the top and left of the popper correspond with the virtualElement', () => { | ||
cy.get('[data-test="dhis2-uicore-popper"]').should($popper => { | ||
@@ -34,0 +34,0 @@ const popperRect = $popper.get(0).getBoundingClientRect(); |
"use strict"; | ||
var _steps = require("cypress-cucumber-preprocessor/steps"); | ||
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor"); | ||
// Visit stories with different placements | ||
(0, _steps.Given)('the Popper is rendered with placement top', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement top', () => { | ||
cy.visitStory('Popper', 'top'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement top-start', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement top-start', () => { | ||
cy.visitStory('Popper', 'top-start'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement top-end', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement top-end', () => { | ||
cy.visitStory('Popper', 'top-end'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement right', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement right', () => { | ||
cy.visitStory('Popper', 'right'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement right-start', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement right-start', () => { | ||
cy.visitStory('Popper', 'right-start'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement right-end', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement right-end', () => { | ||
cy.visitStory('Popper', 'right-end'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement bottom', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement bottom', () => { | ||
cy.visitStory('Popper', 'bottom'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement bottom-start', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement bottom-start', () => { | ||
cy.visitStory('Popper', 'bottom-start'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement bottom-end', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement bottom-end', () => { | ||
cy.visitStory('Popper', 'bottom-end'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement left', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement left', () => { | ||
cy.visitStory('Popper', 'left'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement left-start', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement left-start', () => { | ||
cy.visitStory('Popper', 'left-start'); | ||
}); | ||
(0, _steps.Given)('the Popper is rendered with placement left-end', () => { | ||
(0, _cypressCucumberPreprocessor.Given)('the Popper is rendered with placement left-end', () => { | ||
cy.visitStory('Popper', 'left-end'); | ||
@@ -44,3 +44,3 @@ }); // Directional assertions | ||
(0, _steps.Then)('the bottom of the popper is adjacent to the top of the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the bottom of the popper is adjacent to the top of the reference element', () => { | ||
getRefAndPopperPositions().should(_ref => { | ||
@@ -52,3 +52,3 @@ let [refPos, popperPos] = _ref; | ||
(0, _steps.Then)('the left of the popper is adjacent to the right of the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the left of the popper is adjacent to the right of the reference element', () => { | ||
getRefAndPopperPositions().should(_ref2 => { | ||
@@ -60,3 +60,3 @@ let [refPos, popperPos] = _ref2; | ||
(0, _steps.Then)('the top of the popper is adjacent to the bottom of the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the top of the popper is adjacent to the bottom of the reference element', () => { | ||
getRefAndPopperPositions().should(_ref3 => { | ||
@@ -68,3 +68,3 @@ let [refPos, popperPos] = _ref3; | ||
(0, _steps.Then)('the right of the popper is adjacent to the left of the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('the right of the popper is adjacent to the left of the reference element', () => { | ||
getRefAndPopperPositions().should(_ref4 => { | ||
@@ -77,3 +77,3 @@ let [refPos, popperPos] = _ref4; | ||
(0, _steps.Then)('it is horizontally left aligned with the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('it is horizontally left aligned with the reference element', () => { | ||
getRefAndPopperPositions().should(_ref5 => { | ||
@@ -85,3 +85,3 @@ let [refPos, popperPos] = _ref5; | ||
(0, _steps.Then)('it is horizontally center aligned with the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('it is horizontally center aligned with the reference element', () => { | ||
getRefAndPopperPositions().should(_ref6 => { | ||
@@ -95,3 +95,3 @@ let [refPos, popperPos] = _ref6; | ||
(0, _steps.Then)('it is horizontally right aligned with the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('it is horizontally right aligned with the reference element', () => { | ||
getRefAndPopperPositions().should(_ref7 => { | ||
@@ -104,3 +104,3 @@ let [refPos, popperPos] = _ref7; | ||
(0, _steps.Then)('it is vertically top aligned with the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('it is vertically top aligned with the reference element', () => { | ||
getRefAndPopperPositions().should(_ref8 => { | ||
@@ -112,3 +112,3 @@ let [refPos, popperPos] = _ref8; | ||
(0, _steps.Then)('it is vertically center aligned with the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('it is vertically center aligned with the reference element', () => { | ||
getRefAndPopperPositions().should(_ref9 => { | ||
@@ -122,3 +122,3 @@ let [refPos, popperPos] = _ref9; | ||
(0, _steps.Then)('it is vertically bottom aligned with the reference element', () => { | ||
(0, _cypressCucumberPreprocessor.Then)('it is vertically bottom aligned with the reference element', () => { | ||
getRefAndPopperPositions().should(_ref10 => { | ||
@@ -125,0 +125,0 @@ let [refPos, popperPos] = _ref10; |
@@ -1,2 +0,2 @@ | ||
import { Given, Then } from 'cypress-cucumber-preprocessor/steps'; | ||
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor'; | ||
Given('a Popper with placement bottom-start has a React Ref as its reference', () => { | ||
@@ -3,0 +3,0 @@ cy.visitStory('Popper', 'React Ref As Reference'); |
@@ -1,2 +0,2 @@ | ||
import { Given, Then } from 'cypress-cucumber-preprocessor/steps'; // Visit stories with different placements | ||
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor'; // Visit stories with different placements | ||
@@ -3,0 +3,0 @@ Given('the Popper is rendered with placement top', () => { |
{ | ||
"name": "@dhis2-ui/popper", | ||
"version": "9.5.0-alpha.1", | ||
"version": "9.5.0", | ||
"description": "UI Popper", | ||
@@ -36,3 +36,3 @@ "repository": { | ||
"@dhis2/prop-types": "^3.1.2", | ||
"@dhis2/ui-constants": "9.5.0-alpha.1", | ||
"@dhis2/ui-constants": "9.5.0", | ||
"@popperjs/core": "^2.10.1", | ||
@@ -39,0 +39,0 @@ "classnames": "^2.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
61538
0
+ Added@dhis2/ui-constants@9.5.0(transitive)
+ Addedcaniuse-lite@1.0.30001684(transitive)
+ Addedelectron-to-chromium@1.5.65(transitive)
- Removed@dhis2/ui-constants@9.5.0-alpha.1(transitive)
- Removedcaniuse-lite@1.0.30001683(transitive)
- Removedelectron-to-chromium@1.5.64(transitive)
Updated@dhis2/ui-constants@9.5.0