Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dhis2-ui/layer

Package Overview
Dependencies
Maintainers
2
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2-ui/layer - npm Package Compare versions

Comparing version 9.5.0-alpha.1 to 9.5.0

6

build/cjs/features/accepts_children/index.js
"use strict";
var _steps = require("cypress-cucumber-preprocessor/steps");
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
(0, _steps.Given)('a Layer with children is rendered', () => {
(0, _cypressCucumberPreprocessor.Given)('a Layer with children is rendered', () => {
cy.visitStory('Layer', 'Default');
});
(0, _steps.Then)('the children are visible', () => {
(0, _cypressCucumberPreprocessor.Then)('the children are visible', () => {
cy.contains('I am a child').should('be.visible');
});
"use strict";
var _steps = require("cypress-cucumber-preprocessor/steps");
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
(0, _steps.Given)('a Layer with a button below it is rendered', () => {
(0, _cypressCucumberPreprocessor.Given)('a Layer with a button below it is rendered', () => {
cy.visitStory('Layer', 'Blocking');
});
(0, _steps.Given)('a Layer with a button in it is rendered', () => {
(0, _cypressCucumberPreprocessor.Given)('a Layer with a button in it is rendered', () => {
cy.visitStory('Layer', 'With Click Handler');
});
(0, _steps.When)('the user clicks the button', () => {
(0, _cypressCucumberPreprocessor.When)('the user clicks the button', () => {
cy.get('button').click();
});
(0, _steps.When)('the user clicks on the layer', () => {
(0, _cypressCucumberPreprocessor.When)('the user clicks on the layer', () => {
cy.get('[data-test="dhis2-uicore-layer"]').click();
});
(0, _steps.When)('the user clicks on the button coordinates', () => {
(0, _cypressCucumberPreprocessor.When)('the user clicks on the button coordinates', () => {
cy.getPositionsBySelectors('button').then(_ref => {

@@ -27,3 +27,3 @@ let [rect] = _ref;

});
(0, _steps.Then)('the onClick handler of the button is called', () => {
(0, _cypressCucumberPreprocessor.Then)('the onClick handler of the button is called', () => {
cy.window().should(win => {

@@ -33,3 +33,3 @@ expect(win.onButtonClick).to.be.calledOnce;

});
(0, _steps.Then)('the onClick handler of the layer is called', () => {
(0, _cypressCucumberPreprocessor.Then)('the onClick handler of the layer is called', () => {
cy.window().should(win => {

@@ -39,3 +39,3 @@ expect(win.onLayerClick).to.be.calledOnce;

});
(0, _steps.Then)('the onClick handler of the button is not called', () => {
(0, _cypressCucumberPreprocessor.Then)('the onClick handler of the button is not called', () => {
cy.window().should(win => {

@@ -45,3 +45,3 @@ expect(win.onButtonClick).to.have.callCount(0);

});
(0, _steps.Then)('the onClick handler of the layer is not called', () => {
(0, _cypressCucumberPreprocessor.Then)('the onClick handler of the layer is not called', () => {
cy.window().should(win => {

@@ -48,0 +48,0 @@ expect(win.onLayerClick).to.have.callCount(0);

"use strict";
var _steps = require("cypress-cucumber-preprocessor/steps");
var _cypressCucumberPreprocessor = require("@badeball/cypress-cucumber-preprocessor");
(0, _steps.Given)('two equal sibling Layers are rendered', () => {
(0, _cypressCucumberPreprocessor.Given)('two equal sibling Layers are rendered', () => {
cy.visitStory('Layer', 'Equal Siblings');
});
(0, _steps.Given)('an alert, blocking, and applicatioTop Layer are rendered as siblings', () => {
(0, _cypressCucumberPreprocessor.Given)('an alert, blocking, and applicatioTop Layer are rendered as siblings', () => {
cy.visitStory('Layer', 'Inequal Siblings');
});
(0, _steps.Given)('a blocking layer is rendered as the child of an alert layer', () => {
(0, _cypressCucumberPreprocessor.Given)('a blocking layer is rendered as the child of an alert layer', () => {
cy.visitStory('Layer', 'Nested Lower Levels');
});
(0, _steps.Given)('an alert layer is rendered as the child of a blocking layer', () => {
(0, _cypressCucumberPreprocessor.Given)('an alert layer is rendered as the child of a blocking layer', () => {
cy.visitStory('Layer', 'Nested Higher Levels');
});
(0, _steps.Given)('a layer with level 1001 is a sibling of 3 nested layers with level 1000', () => {
(0, _cypressCucumberPreprocessor.Given)('a layer with level 1001 is a sibling of 3 nested layers with level 1000', () => {
cy.visitStory('Layer', 'Levels Are Respected When Nesting');
});
(0, _steps.Given)('an applicatioTop layer with a nested alert layer with a blocking sibling', () => {
(0, _cypressCucumberPreprocessor.Given)('an applicatioTop layer with a nested alert layer with a blocking sibling', () => {
cy.visitStory('Layer', 'Nested Higher Level Ends On Top');
});
(0, _steps.Then)('the second layer is on top of the first layer', () => {
(0, _cypressCucumberPreprocessor.Then)('the second layer is on top of the first layer', () => {
cy.get('body').click();

@@ -30,3 +30,3 @@ cy.window().should(win => {

});
(0, _steps.Then)('the alert layer is on top', () => {
(0, _cypressCucumberPreprocessor.Then)('the alert layer is on top', () => {
cy.get('body').click();

@@ -38,3 +38,3 @@ cy.window().should(win => {

});
(0, _steps.Then)('the layer with level 1001 is on top', () => {
(0, _cypressCucumberPreprocessor.Then)('the layer with level 1001 is on top', () => {
cy.get('body').click();

@@ -46,3 +46,3 @@ cy.window().should(win => {

});
(0, _steps.Then)('the blocking layer is on top', () => {
(0, _cypressCucumberPreprocessor.Then)('the blocking layer is on top', () => {
cy.get('body').click();

@@ -54,7 +54,7 @@ cy.window().should(win => {

});
(0, _steps.Then)('the blocking layer is a child of the alert layer', () => {
(0, _cypressCucumberPreprocessor.Then)('the blocking layer is a child of the alert layer', () => {
cy.get('[data-test="blocking"]').parent().should('have.data', 'test', 'alert');
});
(0, _steps.Then)('the alert layer is a sibling of the blocking layer', () => {
(0, _cypressCucumberPreprocessor.Then)('the alert layer is a sibling of the blocking layer', () => {
cy.get('[data-test="blocking"]').next().should('have.data', 'test', 'alert');
});

@@ -1,2 +0,2 @@

import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
Given('a Layer with children is rendered', () => {

@@ -3,0 +3,0 @@ cy.visitStory('Layer', 'Default');

@@ -1,2 +0,2 @@

import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
Given('a Layer with a button below it is rendered', () => {

@@ -3,0 +3,0 @@ cy.visitStory('Layer', 'Blocking');

@@ -1,2 +0,2 @@

import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
Given('two equal sibling Layers are rendered', () => {

@@ -3,0 +3,0 @@ cy.visitStory('Layer', 'Equal Siblings');

{
"name": "@dhis2-ui/layer",
"version": "9.5.0-alpha.1",
"version": "9.5.0",
"description": "UI Layer",

@@ -36,4 +36,4 @@ "repository": {

"@dhis2/prop-types": "^3.1.2",
"@dhis2-ui/portal": "9.5.0-alpha.1",
"@dhis2/ui-constants": "9.5.0-alpha.1",
"@dhis2-ui/portal": "9.5.0",
"@dhis2/ui-constants": "9.5.0",
"classnames": "^2.3.1",

@@ -40,0 +40,0 @@ "prop-types": "^15.7.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc